Skip to content

Commit 67f9ce7

Browse files
authored
[atari] If you don't configure the CMD pin, how can you have any pudding? (#1051)
1 parent 4edcf0b commit 67f9ce7

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

lib/bus/sio/sio.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ void systemBus::_sio_process_cmd()
210210
tempFrame.commanddata = 0;
211211
tempFrame.checksum = 0;
212212

213-
if (SYSTEM_BUS.read((uint8_t *)&tempFrame, sizeof(tempFrame)) != sizeof(tempFrame))
213+
if (_port->read((uint8_t *)&tempFrame, sizeof(tempFrame)) != sizeof(tempFrame))
214214
{
215215
// Debug_println("Timeout waiting for data after CMD pin asserted");
216216
return;
@@ -440,7 +440,7 @@ void systemBus::service()
440440
{
441441
// flush UART input
442442
#ifdef ESP_PLATFORM
443-
SYSTEM_BUS.discardInput();
443+
_port->discardInput();
444444
#else
445445
if (!SYSTEM_BUS.isBoIP())
446446
_port->discardInput();
@@ -467,6 +467,7 @@ void systemBus::configureGPIO()
467467
// MTR PIN
468468
fnSystem.set_pin_mode(PIN_MTR, gpio_mode_t::GPIO_MODE_INPUT);
469469
// CMD PIN
470+
fnSystem.set_pin_mode(PIN_CMD, gpio_mode_t::GPIO_MODE_INPUT);
470471
// configured by SerialSIO, not here
471472
// CKI PIN
472473
fnSystem.set_pin_mode(PIN_CKI, gpio_mode_t::GPIO_MODE_OUTPUT_OD);

0 commit comments

Comments
 (0)