Skip to content

Commit 5dc96ae

Browse files
committed
Release lines immediately on LISTEN.
1 parent 36fb501 commit 5dc96ae

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

lib/bus/iec/iec.cpp

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -91,9 +91,13 @@ void IRAM_ATTR systemBus::cbm_on_clk_isr_handler()
9191
case IEC_LISTEN:
9292
case IEC_TALK:
9393
if (dev == IEC_ALLDEV || !isDeviceEnabled(dev)) {
94-
// Handle releaseLines() when ATN is released outside of this
95-
// interrupt to prevent watchdog timeout
96-
IEC_SET_STATE(BUS_RELEASE);
94+
if (cmd == IEC_TALK) {
95+
// Handle releaseLines() when ATN is released outside of this
96+
// interrupt to prevent watchdog timeout
97+
IEC_SET_STATE(BUS_RELEASE);
98+
}
99+
else
100+
releaseLines();
97101
sendInput();
98102
}
99103
else {

0 commit comments

Comments
 (0)