Skip to content

Commit

Permalink
Revert "sio: disk: don't process cmd if device not active"
Browse files Browse the repository at this point in the history
This reverts commit 03749d0.
  • Loading branch information
mozzwald committed Nov 3, 2023
1 parent a406d68 commit faf581c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/device/sio/disk.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,8 @@ void sioDisk::sio_process(uint32_t commanddata, uint8_t checksum)
if (_disk == nullptr || _disk->_disktype == MEDIATYPE_UNKNOWN)
return;

if (device_active == false)
if (device_active == false &&
(cmdFrame.comnd != SIO_DISKCMD_STATUS && cmdFrame.comnd != SIO_DISKCMD_HSIO_INDEX))
return;

Debug_printf("disk sio_process(), baud: %d\n", SIO.getBaudrate());
Expand Down

0 comments on commit faf581c

Please sign in to comment.