File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff 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);
You can’t perform that action at this time.
0 commit comments