summaryrefslogtreecommitdiff
path: root/firmware/target/arm/rk27xx
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/target/arm/rk27xx')
-rw-r--r--firmware/target/arm/rk27xx/hm801/button-hm801.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/firmware/target/arm/rk27xx/hm801/button-hm801.c b/firmware/target/arm/rk27xx/hm801/button-hm801.c
index 0ac1b3b0aa..5f01a7bd14 100644
--- a/firmware/target/arm/rk27xx/hm801/button-hm801.c
+++ b/firmware/target/arm/rk27xx/hm801/button-hm801.c
@@ -137,9 +137,11 @@ static int button_read_device_v2(void) {
137 137
138int button_read_device(void) { 138int button_read_device(void) {
139 static bool hold_button = false; 139 static bool hold_button = false;
140#ifndef BOOTLOADER
140 bool hold_button_old; 141 bool hold_button_old;
141 142
142 hold_button_old = hold_button; 143 hold_button_old = hold_button;
144#endif
143 hold_button = button_hold(); 145 hold_button = button_hold();
144 146
145#ifndef BOOTLOADER 147#ifndef BOOTLOADER
@@ -147,7 +149,7 @@ int button_read_device(void) {
147 backlight_hold_changed(hold_button); 149 backlight_hold_changed(hold_button);
148 } 150 }
149#endif 151#endif
150 152
151 if (hold_button) { 153 if (hold_button) {
152 return 0; 154 return 0;
153 } else if (kbd_type == KEYBOARD_V1) { 155 } else if (kbd_type == KEYBOARD_V1) {