Fix spelling.

This commit is contained in:
Maxim Poliakovski
2026-01-31 23:16:36 +01:00
parent 79c9b5f63e
commit 7d4ebf5bf1
4 changed files with 7 additions and 7 deletions
+1 -1
View File
@@ -248,7 +248,7 @@ protected:
int field = 0;
bool valid = true;
bool last_selection_has_atention = false;
bool last_selection_has_attention = false;
uint8_t last_selection_message = 0;
ScsiBus* bus_obj;
+1 -1
View File
@@ -181,7 +181,7 @@ uint32_t ScsiCdrom::inquiry(uint8_t *cmd_ptr, uint8_t *data_ptr) {
}
int lun;
if (this->last_selection_has_atention) {
if (this->last_selection_has_attention) {
LOG_F(INFO, "%s: INQUIRY (%d bytes) with ATN LUN = %02x & 7", this->name.c_str(),
alloc_len, this->last_selection_message);
lun = this->last_selection_message & 7;
+3 -3
View File
@@ -48,10 +48,10 @@ void ScsiDevice::notify(ScsiNotification notif_type, int param)
this->seq_steps = nullptr;
this->initiator_id = this->bus_obj->get_initiator_id();
if (this->bus_obj->test_ctrl_lines(SCSI_CTRL_ATN)) {
this->last_selection_has_atention = true;
this->last_selection_has_attention = true;
this->switch_phase(ScsiPhase::MESSAGE_OUT);
} else {
this->last_selection_has_atention = false;
this->last_selection_has_attention = false;
this->switch_phase(ScsiPhase::COMMAND);
}
});
@@ -187,7 +187,7 @@ int ScsiDevice::xfer_data() {
} else {
this->process_message();
}
if (this->last_selection_has_atention)
if (this->last_selection_has_attention)
this->last_selection_message = this->msg_buf[0];
}
break;
+2 -2
View File
@@ -170,7 +170,7 @@ int ScsiHardDisk::req_sense(uint16_t alloc_len) {
//int next_phase;
int lun;
if (this->last_selection_has_atention) {
if (this->last_selection_has_attention) {
lun = this->last_selection_message & 7;
}
else {
@@ -232,7 +232,7 @@ uint32_t ScsiHardDisk::inquiry(uint8_t *cmd_ptr, uint8_t *data_ptr) {
}
int lun;
if (this->last_selection_has_atention) {
if (this->last_selection_has_attention) {
LOG_F(INFO, "%s: INQUIRY (%d bytes) with ATN LUN = %02x & 7",
this->name.c_str(), alloc_len, this->last_selection_message);
lun = this->last_selection_message & 7;