summaryrefslogtreecommitdiffstats
path: root/firmware/target/arm/samsung
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/target/arm/samsung')
-rw-r--r--firmware/target/arm/samsung/button-yh82x_yh92x.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/firmware/target/arm/samsung/button-yh82x_yh92x.c b/firmware/target/arm/samsung/button-yh82x_yh92x.c
index ff8a580d2a..7d0f390644 100644
--- a/firmware/target/arm/samsung/button-yh82x_yh92x.c
+++ b/firmware/target/arm/samsung/button-yh82x_yh92x.c
@@ -103,10 +103,14 @@ int button_read_device(void)
int btn = BUTTON_NONE;
#endif /* (SAMSUNG_YH920) || (SAMSUNG_YH925) */
static bool hold_button = false;
+#ifndef BOOTLOADER
bool hold_button_old;
+#endif
/* Hold */
+#ifndef BOOTLOADER
hold_button_old = hold_button;
+#endif
hold_button = button_hold();
#ifndef BOOTLOADER