mirror of
https://github.com/akuker/RASCSI.git
synced 2024-05-27 17:48:29 +00:00
Fix MESSAGE OUT handling
This commit is contained in:
parent
063e8ed32b
commit
9890833bcc
|
@ -321,12 +321,6 @@ int GPIOBUS::SendHandShake(uint8_t *buf, int count, int delay_after_bytes)
|
|||
phase_t phase = GetPhase();
|
||||
|
||||
for (i = 0; i < count; i++) {
|
||||
if (i == delay_after_bytes) {
|
||||
spdlog::trace("DELAYING for " + to_string(SCSI_DELAY_SEND_DATA_DAYNAPORT_US) + " after " +
|
||||
to_string(delay_after_bytes) + " bytes");
|
||||
SysTimer::SleepUsec(SCSI_DELAY_SEND_DATA_DAYNAPORT_US);
|
||||
}
|
||||
|
||||
// Set the DATA signals
|
||||
SetDAT(*buf);
|
||||
|
||||
|
@ -338,6 +332,11 @@ int GPIOBUS::SendHandShake(uint8_t *buf, int count, int delay_after_bytes)
|
|||
break;
|
||||
}
|
||||
|
||||
// Signal the last MESSAGE OUT byte
|
||||
if (phase == phase_t::msgout && i == count - 1) {
|
||||
SetATN(false);
|
||||
}
|
||||
|
||||
// Phase error
|
||||
Acquire();
|
||||
if (GetPhase() != phase) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user