Skip to content

Commit ebc2fcf

Browse files
joevtdingusdev
authored andcommitted
atabasedevice: Add missing this.
1 parent 25c74f7 commit ebc2fcf

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

devices/common/ata/atabasedevice.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ uint16_t AtaBaseDevice::read(const uint8_t reg_addr) {
111111
void AtaBaseDevice::write(const uint8_t reg_addr, const uint16_t value) {
112112
switch (reg_addr) {
113113
case ATA_Reg::DATA:
114-
if (is_selected() && this->has_data()) {
114+
if (this->is_selected() && this->has_data()) {
115115
*this->cur_data_ptr++ = BYTESWAP_16(value);
116116
this->chunk_cnt -= 2;
117117
if (this->chunk_cnt <= 0) {
@@ -160,7 +160,7 @@ void AtaBaseDevice::write(const uint8_t reg_addr, const uint16_t value) {
160160
break;
161161
}
162162
this->r_command = value;
163-
if (is_selected() || this->r_command == DIAGNOSTICS) {
163+
if (this->is_selected() || this->r_command == DIAGNOSTICS) {
164164
perform_command();
165165
}
166166
break;

0 commit comments

Comments
 (0)