diff options
author | Linus Nielsen Feltzing <linus@haxx.se> | 2002-06-26 21:47:21 +0000 |
---|---|---|
committer | Linus Nielsen Feltzing <linus@haxx.se> | 2002-06-26 21:47:21 +0000 |
commit | 8296cd16f98949e27b2581ffc591a553160f8e64 (patch) | |
tree | ae73f63cb34ba0be9bf2222c7d484ce523569207 | |
parent | d1d752554b3976fd6f6956eb1ddcbd415a2260f6 (diff) | |
download | rockbox-8296cd16f98949e27b2581ffc591a553160f8e64.tar.gz rockbox-8296cd16f98949e27b2581ffc591a553160f8e64.zip |
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.c | 6 |
1 files changed, 4 insertions, 2 deletions
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) | |||
65 | post = true; | 65 | post = true; |
66 | repeat = true; | 66 | repeat = true; |
67 | count = REPEAT_INTERVAL; | 67 | count = REPEAT_INTERVAL; |
68 | #ifdef HAVE_RECORDER_KEYPAD | ||
69 | /* If the OFF button is pressed long enough, and we are | 68 | /* If the OFF button is pressed long enough, and we are |
70 | still alive, then the unit must be connected to a | 69 | still alive, then the unit must be connected to a |
71 | charger. Therefore we will reboot and let the original | 70 | charger. Therefore we will reboot and let the original |
72 | firmware handle the charging. */ | 71 | firmware handle the charging. */ |
72 | #ifdef HAVE_RECORDER_KEYPAD | ||
73 | if(btn == BUTTON_OFF) | 73 | if(btn == BUTTON_OFF) |
74 | system_reboot(); | 74 | #elif HAVE_PLAYER_KEYPAD |
75 | if(btn == BUTTON_STOP) | ||
75 | #endif | 76 | #endif |
77 | system_reboot(); | ||
76 | } | 78 | } |
77 | } | 79 | } |
78 | if ( post ) | 80 | if ( post ) |