forked from len0rd/rockbox
Added STOP key reboot for Players as well
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1208 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
d1d752554b
commit
8296cd16f9
1 changed files with 4 additions and 2 deletions
|
|
@ -65,14 +65,16 @@ static void button_tick(void)
|
||||||
post = true;
|
post = true;
|
||||||
repeat = true;
|
repeat = true;
|
||||||
count = REPEAT_INTERVAL;
|
count = REPEAT_INTERVAL;
|
||||||
#ifdef HAVE_RECORDER_KEYPAD
|
|
||||||
/* If the OFF button is pressed long enough, and we are
|
/* If the OFF button is pressed long enough, and we are
|
||||||
still alive, then the unit must be connected to a
|
still alive, then the unit must be connected to a
|
||||||
charger. Therefore we will reboot and let the original
|
charger. Therefore we will reboot and let the original
|
||||||
firmware handle the charging. */
|
firmware handle the charging. */
|
||||||
|
#ifdef HAVE_RECORDER_KEYPAD
|
||||||
if(btn == BUTTON_OFF)
|
if(btn == BUTTON_OFF)
|
||||||
system_reboot();
|
#elif HAVE_PLAYER_KEYPAD
|
||||||
|
if(btn == BUTTON_STOP)
|
||||||
#endif
|
#endif
|
||||||
|
system_reboot();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if ( post )
|
if ( post )
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue