forked from len0rd/rockbox
iRiver: Allow shutdown when charging
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5887 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
abcb16192e
commit
6da68019b5
2 changed files with 4 additions and 0 deletions
|
|
@ -229,7 +229,9 @@ bool clean_shutdown(void)
|
|||
#ifdef SIMULATOR
|
||||
exit(0);
|
||||
#else
|
||||
#ifndef IRIVER_H100
|
||||
if(!charger_inserted())
|
||||
#endif
|
||||
{
|
||||
lcd_clear_display();
|
||||
splash(0, true, str(LANG_SHUTTINGDOWN));
|
||||
|
|
|
|||
|
|
@ -807,12 +807,14 @@ static bool dirbrowse(void)
|
|||
}
|
||||
break;
|
||||
#endif
|
||||
#ifndef IRIVER_H100
|
||||
case TREE_OFF | BUTTON_REPEAT:
|
||||
if (charger_inserted()) {
|
||||
charging_splash();
|
||||
restore = true;
|
||||
}
|
||||
break;
|
||||
#endif
|
||||
#endif
|
||||
|
||||
case TREE_PREV:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue