summaryrefslogtreecommitdiff
path: root/firmware/drivers
diff options
context:
space:
mode:
authorTomas Salfischberger <tomas@rockbox.org>2005-06-08 18:01:14 +0000
committerTomas Salfischberger <tomas@rockbox.org>2005-06-08 18:01:14 +0000
commit70fca2f6fcb30669b9107e96d2191edef0757502 (patch)
tree4aabb76b7e4e0bbaadd8d03bede018cafb5e6e00 /firmware/drivers
parent5b338bd8a78025fe57d52d744e861c2b6ff77fb2 (diff)
Oops! Compile error on ondio and gmini... fixed now
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6620 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/drivers')
-rw-r--r--firmware/drivers/button.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/firmware/drivers/button.c b/firmware/drivers/button.c
index 24de08f672..820ca250bc 100644
--- a/firmware/drivers/button.c
+++ b/firmware/drivers/button.c
@@ -123,7 +123,11 @@ static void button_tick(void)
which doesn't shut down easily with the OFF
key */
#ifdef HAVE_SW_POWEROFF
+#ifdef BUTTON_RC_STOP
if ((btn == BUTTON_OFF || btn == BUTTON_RC_STOP) &&
+#else
+ if (btn == BUTTON_OFF &&
+#endif
#ifndef IRIVER_H100
!charger_inserted() &&
#endif