Skip to content

Commit

Permalink
sio: disk: don't respond to status if disk not active
Browse files Browse the repository at this point in the history
  • Loading branch information
mozzwald committed Nov 4, 2023
1 parent faf581c commit 80e9e87
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/device/sio/disk.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -295,8 +295,8 @@ 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 && cmdFrame.device != SIO_DEVICEID_DISK) || // not active and not D1
(device_active == false && theFuji.boot_config == false)) // not active and not config boot
return;

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

0 comments on commit 80e9e87

Please sign in to comment.