summaryrefslogtreecommitdiffstats
path: root/firmware/target/arm/pbell/vibe500
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/target/arm/pbell/vibe500')
-rw-r--r--firmware/target/arm/pbell/vibe500/button-vibe500.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/firmware/target/arm/pbell/vibe500/button-vibe500.c b/firmware/target/arm/pbell/vibe500/button-vibe500.c
index 9afc9eecab..1279e86725 100644
--- a/firmware/target/arm/pbell/vibe500/button-vibe500.c
+++ b/firmware/target/arm/pbell/vibe500/button-vibe500.c
@@ -97,9 +97,11 @@ int button_read_device(void)
int buttons = int_btn;
unsigned char state;
static bool hold_button = false;
+#ifndef BOOTLOADER
bool hold_button_old;
hold_button_old = hold_button;
+#endif
hold_button = button_hold();
#ifndef BOOTLOADER