summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLinus Nielsen Feltzing <linus@haxx.se>2002-06-26 21:47:21 +0000
committerLinus Nielsen Feltzing <linus@haxx.se>2002-06-26 21:47:21 +0000
commit8296cd16f98949e27b2581ffc591a553160f8e64 (patch)
treeae73f63cb34ba0be9bf2222c7d484ce523569207
parentd1d752554b3976fd6f6956eb1ddcbd415a2260f6 (diff)
downloadrockbox-8296cd16f98949e27b2581ffc591a553160f8e64.zip
rockbox-8296cd16f98949e27b2581ffc591a553160f8e64.tar.gz
rockbox-8296cd16f98949e27b2581ffc591a553160f8e64.tar.bz2
rockbox-8296cd16f98949e27b2581ffc591a553160f8e64.tar.xz
Added STOP key reboot for Players as well
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1208 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--firmware/drivers/button.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/firmware/drivers/button.c b/firmware/drivers/button.c
index 7f680c6..96cd9fd 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 )