From 03749d02ec1ca4e6f8dfe4f4448fc093f79fdf4c Mon Sep 17 00:00:00 2001 From: mozzwald Date: Sat, 28 Oct 2023 11:34:41 -0500 Subject: [PATCH] sio: disk: don't process cmd if device not active --- lib/device/sio/disk.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/device/sio/disk.cpp b/lib/device/sio/disk.cpp index aae331026..6dc589217 100755 --- a/lib/device/sio/disk.cpp +++ b/lib/device/sio/disk.cpp @@ -295,8 +295,7 @@ void sioDisk::sio_process(uint32_t commanddata, uint8_t checksum) if (_disk == nullptr || _disk->_disktype == MEDIATYPE_UNKNOWN) return; - if (device_active == false && - (cmdFrame.comnd != SIO_DISKCMD_STATUS && cmdFrame.comnd != SIO_DISKCMD_HSIO_INDEX)) + if (device_active == false) return; Debug_printf("disk sio_process(), baud: %d\n", SIO.getBaudrate());