summaryrefslogtreecommitdiffstats
path: root/firmware
diff options
context:
space:
mode:
authorBertrik Sikken <bertrik@sikken.nl>2011-03-13 10:24:49 +0000
committerBertrik Sikken <bertrik@sikken.nl>2011-03-13 10:24:49 +0000
commite86a7fb77d22cdd593162e91d57012f4ae61cc81 (patch)
tree18a6d46940171fed423c2b0881261045fcbfda17 /firmware
parent8aa90b6b0be0125ba645af30757524055acbb185 (diff)
downloadrockbox-e86a7fb77d22cdd593162e91d57012f4ae61cc81.tar.gz
rockbox-e86a7fb77d22cdd593162e91d57012f4ae61cc81.zip
Fix FS#11894 - Sansa Clip+ Volume Buttons don't switch when Upside Down is activated
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29577 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware')
-rw-r--r--firmware/drivers/button.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/firmware/drivers/button.c b/firmware/drivers/button.c
index c2df00691b..f8e4a35b47 100644
--- a/firmware/drivers/button.c
+++ b/firmware/drivers/button.c
@@ -485,7 +485,7 @@ static int button_flip(int button)
#if CONFIG_KEYPAD == RECORDER_PAD
| BUTTON_F1 | BUTTON_F3
#endif
-#if CONFIG_KEYPAD == SANSA_C200_PAD
+#if (CONFIG_KEYPAD == SANSA_C200_PAD) || (CONFIG_KEYPAD == SANSA_CLIP_PAD)
| BUTTON_VOL_UP | BUTTON_VOL_DOWN
#endif
#if CONFIG_KEYPAD == PHILIPS_SA9200_PAD
@@ -516,7 +516,7 @@ static int button_flip(int button)
if (button & BUTTON_F3)
newbutton |= BUTTON_F1;
#endif
-#if CONFIG_KEYPAD == SANSA_C200_PAD
+#if (CONFIG_KEYPAD == SANSA_C200_PAD) || (CONFIG_KEYPAD == SANSA_CLIP_PAD)
if (button & BUTTON_VOL_UP)
newbutton |= BUTTON_VOL_DOWN;
if (button & BUTTON_VOL_DOWN)