diff options
Diffstat (limited to 'apps')
-rw-r--r-- | apps/misc.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/apps/misc.c b/apps/misc.c index f632ecc7eb..f25b18cb39 100644 --- a/apps/misc.c +++ b/apps/misc.c | |||
@@ -34,6 +34,7 @@ | |||
34 | #include "ata.h" | 34 | #include "ata.h" |
35 | #include "kernel.h" | 35 | #include "kernel.h" |
36 | #include "power.h" | 36 | #include "power.h" |
37 | #include "backlight.h" | ||
37 | #ifdef HAVE_MMC | 38 | #ifdef HAVE_MMC |
38 | #include "ata_mmc.h" | 39 | #include "ata_mmc.h" |
39 | #endif | 40 | #endif |
@@ -224,6 +225,11 @@ bool clean_shutdown(void) | |||
224 | while(ata_disk_is_active()) | 225 | while(ata_disk_is_active()) |
225 | sleep(HZ/10); | 226 | sleep(HZ/10); |
226 | mp3_shutdown(); | 227 | mp3_shutdown(); |
228 | #if CONFIG_KEYPAD == ONDIO_PAD | ||
229 | backlight_off(); | ||
230 | sleep(1); | ||
231 | lcd_set_contrast(0); | ||
232 | #endif | ||
227 | power_off(); | 233 | power_off(); |
228 | } | 234 | } |
229 | #endif | 235 | #endif |