mirror of
https://github.com/dingusdev/dingusppc.git
synced 2025-01-09 21:31:24 +00:00
scsihd: add missing phase switch to write().
This commit is contained in:
parent
2bb35dc613
commit
7e93d2d169
@ -106,7 +106,6 @@ void ScsiHardDisk::process_command() {
|
||||
case ScsiCommand::WRITE_10:
|
||||
lba = READ_DWORD_BE_U(&cmd[2]);
|
||||
this->write(lba, READ_WORD_BE_U(&cmd[7]), 10);
|
||||
this->switch_phase(ScsiPhase::DATA_OUT);
|
||||
break;
|
||||
case ScsiCommand::READ_BUFFER:
|
||||
read_buffer();
|
||||
@ -488,6 +487,8 @@ void ScsiHardDisk::write(uint32_t lba, uint16_t transfer_len, uint8_t cmd_len) {
|
||||
this->post_xfer_action = [this, device_offset]() {
|
||||
this->disk_img.write(this->data_buf, device_offset, this->incoming_size);
|
||||
};
|
||||
|
||||
this->switch_phase(ScsiPhase::DATA_OUT);
|
||||
}
|
||||
|
||||
void ScsiHardDisk::read_buffer() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user