mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-09 13:15:18 -05:00
Fix a bug when shutting down the player with the charger plugged in with the flashed bootloader
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19097 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
18316f670a
commit
d922f31a09
1 changed files with 5 additions and 0 deletions
|
|
@ -70,6 +70,11 @@ void power_off(void)
|
|||
_backlight_off();
|
||||
_buttonlight_off();
|
||||
sleep(HZ);
|
||||
|
||||
/* Do this to allow the drive to properly reset when player restarts
|
||||
* immediately without running OF shutdown.
|
||||
*/
|
||||
GPGCON&=~0x00300000;
|
||||
|
||||
/* Rockbox never properly shutdown the player. When the sleep bit is set
|
||||
* the player actually wakes up in some type of "zombie" state
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue