summaryrefslogtreecommitdiff
path: root/firmware/target/coldfire
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/target/coldfire')
-rw-r--r--firmware/target/coldfire/mpio/hd300/button-hd300.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/firmware/target/coldfire/mpio/hd300/button-hd300.c b/firmware/target/coldfire/mpio/hd300/button-hd300.c
index e84b8d442b..2fdde6f641 100644
--- a/firmware/target/coldfire/mpio/hd300/button-hd300.c
+++ b/firmware/target/coldfire/mpio/hd300/button-hd300.c
@@ -194,13 +194,15 @@ int button_read_device(void)
194 int data = 0; 194 int data = 0;
195 static bool hold_button = false; 195 static bool hold_button = false;
196 196
197#ifndef BOOTLOADER
197 bool hold_button_old; 198 bool hold_button_old;
198 199
199 200
200 /* read hold buttons status */ 201 /* read hold buttons status */
201 hold_button_old = hold_button; 202 hold_button_old = hold_button;
203#endif
202 hold_button = button_hold(); 204 hold_button = button_hold();
203 205
204#ifndef BOOTLOADER 206#ifndef BOOTLOADER
205 /* Only main hold affects backlight */ 207 /* Only main hold affects backlight */
206 if (hold_button != hold_button_old) 208 if (hold_button != hold_button_old)