summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTomas Salfischberger <tomas@rockbox.org>2005-06-08 17:10:27 +0000
committerTomas Salfischberger <tomas@rockbox.org>2005-06-08 17:10:27 +0000
commit5b338bd8a78025fe57d52d744e861c2b6ff77fb2 (patch)
tree85dc9f2348babe066c9dcf267b97765ed6f4ce6b
parent9361a99cc04ad7fc31117388e23c9c5156520c57 (diff)
downloadrockbox-5b338bd8a78025fe57d52d744e861c2b6ff77fb2.tar.gz
rockbox-5b338bd8a78025fe57d52d744e861c2b6ff77fb2.zip
Bugfix: It was impossible to shut the iriver down with the remote.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6619 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--firmware/drivers/button.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/firmware/drivers/button.c b/firmware/drivers/button.c
index 0bd4ecd1c4..24de08f672 100644
--- a/firmware/drivers/button.c
+++ b/firmware/drivers/button.c
@@ -123,7 +123,7 @@ static void button_tick(void)
123 which doesn't shut down easily with the OFF 123 which doesn't shut down easily with the OFF
124 key */ 124 key */
125#ifdef HAVE_SW_POWEROFF 125#ifdef HAVE_SW_POWEROFF
126 if (btn == BUTTON_OFF && 126 if ((btn == BUTTON_OFF || btn == BUTTON_RC_STOP) &&
127#ifndef IRIVER_H100 127#ifndef IRIVER_H100
128 !charger_inserted() && 128 !charger_inserted() &&
129#endif 129#endif