forked from len0rd/rockbox
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
This commit is contained in:
parent
65dad074c7
commit
b03ff1e172
1 changed files with 6 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue