diff --git a/firmware/drivers/ata.c b/firmware/drivers/ata.c index 6cab3d3872..fe2e203e5a 100644 --- a/firmware/drivers/ata.c +++ b/firmware/drivers/ata.c @@ -281,7 +281,11 @@ static int ata_perform_sleep(void) } ATA_SELECT = ata_device; +#ifdef DEBUG + ATA_COMMAND = CMD_STANDBY; +#else ATA_COMMAND = CMD_SLEEP; +#endif if (!wait_for_rdy()) ret = -1;