From 8296cd16f98949e27b2581ffc591a553160f8e64 Mon Sep 17 00:00:00 2001 From: Linus Nielsen Feltzing Date: Wed, 26 Jun 2002 21:47:21 +0000 Subject: Added STOP key reboot for Players as well git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1208 a1c6a512-1295-4272-9138-f99709370657 --- firmware/drivers/button.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'firmware') diff --git a/firmware/drivers/button.c b/firmware/drivers/button.c index 7f680c6643..96cd9fd0a6 100644 --- a/firmware/drivers/button.c +++ b/firmware/drivers/button.c @@ -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 ) -- cgit v1.2.3