summaryrefslogtreecommitdiff
path: root/firmware/drivers/ata.c
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/drivers/ata.c')
-rw-r--r--firmware/drivers/ata.c4
1 files changed, 4 insertions, 0 deletions
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)
281 } 281 }
282 282
283 ATA_SELECT = ata_device; 283 ATA_SELECT = ata_device;
284#ifdef DEBUG
285 ATA_COMMAND = CMD_STANDBY;
286#else
284 ATA_COMMAND = CMD_SLEEP; 287 ATA_COMMAND = CMD_SLEEP;
288#endif
285 289
286 if (!wait_for_rdy()) 290 if (!wait_for_rdy())
287 ret = -1; 291 ret = -1;