diff options
Diffstat (limited to 'firmware/drivers/ata.c')
-rw-r--r-- | firmware/drivers/ata.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/firmware/drivers/ata.c b/firmware/drivers/ata.c index 216bf180bf..173dab9be3 100644 --- a/firmware/drivers/ata.c +++ b/firmware/drivers/ata.c | |||
@@ -83,7 +83,7 @@ bool old_recorder = false; | |||
83 | static bool sleeping = false; | 83 | static bool sleeping = false; |
84 | static int sleep_timeout = 5*HZ; | 84 | static int sleep_timeout = 5*HZ; |
85 | static bool poweroff = false; | 85 | static bool poweroff = false; |
86 | #ifdef ARCHOS_RECORDER | 86 | #ifdef HAVE_ATA_POWER_OFF |
87 | static int poweroff_timeout = 2*HZ; | 87 | static int poweroff_timeout = 2*HZ; |
88 | #endif | 88 | #endif |
89 | static char ata_stack[DEFAULT_STACK_SIZE]; | 89 | static char ata_stack[DEFAULT_STACK_SIZE]; |
@@ -411,6 +411,7 @@ void ata_spindown(int seconds) | |||
411 | sleep_timeout = seconds * HZ; | 411 | sleep_timeout = seconds * HZ; |
412 | } | 412 | } |
413 | 413 | ||
414 | #ifdef HAVE_ATA_POWER_OFF | ||
414 | void ata_poweroff(bool enable) | 415 | void ata_poweroff(bool enable) |
415 | { | 416 | { |
416 | if (enable) | 417 | if (enable) |
@@ -418,6 +419,7 @@ void ata_poweroff(bool enable) | |||
418 | else | 419 | else |
419 | poweroff_timeout = 0; | 420 | poweroff_timeout = 0; |
420 | } | 421 | } |
422 | #endif | ||
421 | 423 | ||
422 | bool ata_disk_is_active(void) | 424 | bool ata_disk_is_active(void) |
423 | { | 425 | { |