1
0
Fork 0
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:
Linus Nielsen Feltzing 2002-06-26 21:47:21 +00:00
parent d1d752554b
commit 8296cd16f9

View file

@ -65,14 +65,16 @@ static void button_tick(void)
post = true;
repeat = true;
count = REPEAT_INTERVAL;
#ifdef HAVE_RECORDER_KEYPAD
/* If the OFF button is pressed long enough, and we are
still alive, then the unit must be connected to a
charger. Therefore we will reboot and let the original
firmware handle the charging. */
#ifdef HAVE_RECORDER_KEYPAD
if(btn == BUTTON_OFF)
system_reboot();
#elif HAVE_PLAYER_KEYPAD
if(btn == BUTTON_STOP)
#endif
system_reboot();
}
}
if ( post )