summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--firmware/drivers/ata.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/firmware/drivers/ata.c b/firmware/drivers/ata.c
index 5cff8af19e..bdb744095d 100644
--- a/firmware/drivers/ata.c
+++ b/firmware/drivers/ata.c
@@ -484,7 +484,7 @@ static void ata_thread(void)
484 last_sleep = current_tick; 484 last_sleep = current_tick;
485 } 485 }
486 486
487#ifdef ARCHOS_RECORDER 487#ifdef HAVE_ATA_POWER_OFF
488 if ( sleeping && poweroff_timeout && !poweroff && 488 if ( sleeping && poweroff_timeout && !poweroff &&
489 TIME_AFTER( current_tick, last_sleep + poweroff_timeout )) 489 TIME_AFTER( current_tick, last_sleep + poweroff_timeout ))
490 { 490 {