summaryrefslogtreecommitdiffstats
path: root/apps/plugins/battery_bench.c
diff options
context:
space:
mode:
authorSolomon Peachy <pizza@shaftnet.org>2020-10-11 17:20:22 -0400
committerSolomon Peachy <pizza@shaftnet.org>2020-10-11 17:20:38 -0400
commita5add3982bff6907d30942f614d5a471f75c018b (patch)
tree75854e940ea097703e1bdc3524c1b5fddc27244a /apps/plugins/battery_bench.c
parent2a471e288c16b91a7186a60b3fb84dd55a494c7a (diff)
downloadrockbox-a5add3982b.tar.gz
rockbox-a5add3982b.tar.bz2
rockbox-a5add3982b.zip
Fix red introduced from keymap typos
Change-Id: Ia2094eab6fe48b8fa1b313c7548e5e02d630327f
Diffstat (limited to 'apps/plugins/battery_bench.c')
-rw-r--r--apps/plugins/battery_bench.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/apps/plugins/battery_bench.c b/apps/plugins/battery_bench.c
index bb431e3e04..a3fd7267f0 100644
--- a/apps/plugins/battery_bench.c
+++ b/apps/plugins/battery_bench.c
@@ -53,7 +53,8 @@
#define BATTERY_ON_TXT "PLAY - start"
#define BATTERY_OFF_TXT "MENU"
-#elif CONFIG_KEYPAD == IAUDIO_X5M5_PAD
+#elif CONFIG_KEYPAD == IAUDIO_X5M5_PAD || \
+ CONFIG_KEYPAD == AGPTEK_ROCKER_PAD
#define BATTERY_ON BUTTON_SELECT
#define BATTERY_OFF BUTTON_POWER
@@ -85,7 +86,6 @@
#elif (CONFIG_KEYPAD == IRIVER_H10_PAD || \
CONFIG_KEYPAD == CREATIVE_ZENXFI3_PAD || \
CONFIG_KEYPAD == SONY_NWZ_PAD || \
- CONFIG_KEYPAD == AGPTEK_ROCKER_PAD || \
CONFIG_KEYPAD == XDUOO_X3_PAD || \
CONFIG_KEYPAD == IHIFI_770_PAD || \
CONFIG_KEYPAD == IHIFI_800_PAD || \
@@ -242,7 +242,11 @@
#define BATTERY_OFF_TXT "Power"
#define BATTERY_ON_TXT "Menu - start"
-#elif defined(HAVE_TOUCHSCREEN)
+#else
+#error "No keymap defined!"
+#endif
+
+#if defined(HAVE_TOUCHSCREEN)
#ifndef BATTERY_ON
#define BATTERY_ON BUTTON_CENTER
@@ -257,8 +261,6 @@
#define BATTERY_OFF_TXT "TOPLEFT"
#endif
-#else
-#error No keymap defined!
#endif
/****************************** Plugin Entry Point ****************************/