forked from len0rd/rockbox
Fixed a long-standing bug in the charging screen. The charging screen froze when OFF was pressed. The intention was to powerdown, but this cannot work on archos, so the charging screen must not react on OFF. Made the charging screen react on the ON press instead of the release for better feedback. Bootbox uses SYS_POWEROFF for powering down.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7104 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
fbd4088df8
commit
7c7dd43ccf
3 changed files with 12 additions and 41 deletions
|
|
@ -198,7 +198,7 @@ void init(void)
|
|||
)
|
||||
{
|
||||
rc = charging_screen(); /* display a "charging" screen */
|
||||
if (rc == 1 || rc == 2) /* charger removed or "Off/Stop" pressed */
|
||||
if (rc == 1) /* charger removed */
|
||||
power_off();
|
||||
/* "On" pressed or USB connected: proceed */
|
||||
show_logo(); /* again, to provide better visual feedback */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue