summaryrefslogtreecommitdiffstats
path: root/firmware/target/coldfire/mpio/hd200/button-hd200.c
diff options
context:
space:
mode:
authorSolomon Peachy <pizza@shaftnet.org>2020-10-13 14:43:29 -0400
committerSolomon Peachy <pizza@shaftnet.org>2020-10-13 15:48:31 -0400
commitb94db707fb7a8ace5c8821ea47d85ec48ca48e26 (patch)
tree9b0128bd96c8765a8e7abdbe9062e6bcd397da69 /firmware/target/coldfire/mpio/hd200/button-hd200.c
parent431caa4311c13a0937ae60ac225e780c0a0670b9 (diff)
downloadrockbox-b94db707fb.tar.gz
rockbox-b94db707fb.tar.bz2
rockbox-b94db707fb.zip
Fix more warnings.
Change-Id: Ib3a9fc622a46b1fc72e94dcbc6d29d2e430cd81b
Diffstat (limited to 'firmware/target/coldfire/mpio/hd200/button-hd200.c')
-rw-r--r--firmware/target/coldfire/mpio/hd200/button-hd200.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/firmware/target/coldfire/mpio/hd200/button-hd200.c b/firmware/target/coldfire/mpio/hd200/button-hd200.c
index 27b0d50fb5..5ff70783cd 100644
--- a/firmware/target/coldfire/mpio/hd200/button-hd200.c
+++ b/firmware/target/coldfire/mpio/hd200/button-hd200.c
@@ -69,17 +69,21 @@ int button_read_device(void)
static bool hold_button = false;
bool remote_hold_button = false;
+#ifndef BOOTLOADER
bool hold_button_old;
+#endif
bool remote_present;
/* check if we have remote connected */
remote_present = remote_detect();
/* read hold buttons status */
+#ifndef BOOTLOADER
hold_button_old = hold_button;
+#endif
hold_button = button_hold();
remote_hold_button = remote_button_hold();
-
+
#ifndef BOOTLOADER
/* Only main hold affects backlight */
if (hold_button != hold_button_old)