summaryrefslogtreecommitdiff
path: root/firmware/drivers/button.c
diff options
context:
space:
mode:
authorMichael Sevakis <jethead71@rockbox.org>2006-09-12 15:56:31 +0000
committerMichael Sevakis <jethead71@rockbox.org>2006-09-12 15:56:31 +0000
commit44e8233134f29f0ba88d43937409058da292ee1d (patch)
treefa402e3aaffedf2b53e6936345834ceb33992b5d /firmware/drivers/button.c
parent678d662f74676c3d6b28bef7f0717fc356672d52 (diff)
Added the power off to x5 remote play button. 3s delay seems confortable and well out of the way of the long press for playback stop.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10934 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/drivers/button.c')
-rw-r--r--firmware/drivers/button.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/firmware/drivers/button.c b/firmware/drivers/button.c
index 5e6f6b4827..daad4f17de 100644
--- a/firmware/drivers/button.c
+++ b/firmware/drivers/button.c
@@ -489,6 +489,8 @@ static void button_tick(void)
if ((btn == POWEROFF_BUTTON
#ifdef BUTTON_RC_STOP
|| btn == BUTTON_RC_STOP
+#elif defined(RC_POWEROFF_BUTTON)
+ || btn == RC_POWEROFF_BUTTON
#endif
) &&
#if defined(CONFIG_CHARGING) && !defined(HAVE_POWEROFF_WHILE_CHARGING)