diff options
author | Linus Nielsen Feltzing <linus@haxx.se> | 2004-10-13 09:08:32 +0000 |
---|---|---|
committer | Linus Nielsen Feltzing <linus@haxx.se> | 2004-10-13 09:08:32 +0000 |
commit | b03ff1e1726ba35d0e8be8cc7a87163aa0b6cff5 (patch) | |
tree | f7c443780c4a41c141fee59290e519cbc543c610 | |
parent | 65dad074c7d8233a02ce3abc7a3b98d1a6592233 (diff) |
Fake power off in clean_shutdown() on Ondio players, to make the user releases the OFF button
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5267 a1c6a512-1295-4272-9138-f99709370657
-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 @@ #include "ata.h" #include "kernel.h" #include "power.h" +#include "backlight.h" #ifdef HAVE_MMC #include "ata_mmc.h" #endif @@ -224,6 +225,11 @@ bool clean_shutdown(void) while(ata_disk_is_active()) sleep(HZ/10); mp3_shutdown(); +#if CONFIG_KEYPAD == ONDIO_PAD + backlight_off(); + sleep(1); + lcd_set_contrast(0); +#endif power_off(); } #endif |