Skip to content

Commit

Permalink
sio: disk: don't process cmd if device not active
Browse files Browse the repository at this point in the history
  • Loading branch information
mozzwald committed Oct 28, 2023
1 parent c8cc929 commit 03749d0
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/device/sio/disk.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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());
Expand Down

0 comments on commit 03749d0

Please sign in to comment.