diff options
Diffstat (limited to 'firmware/target')
-rw-r--r-- | firmware/target/arm/as3525/sansa-fuzev2/button-fuzev2.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/firmware/target/arm/as3525/sansa-fuzev2/button-fuzev2.c b/firmware/target/arm/as3525/sansa-fuzev2/button-fuzev2.c index 5bd8afebc1..0a6d2c919c 100644 --- a/firmware/target/arm/as3525/sansa-fuzev2/button-fuzev2.c +++ b/firmware/target/arm/as3525/sansa-fuzev2/button-fuzev2.c | |||
@@ -99,12 +99,16 @@ int button_read_device(void) | |||
99 | GPIOD_DIR = 0; | 99 | GPIOD_DIR = 0; |
100 | CCU_IO |= 1<<12; | 100 | CCU_IO |= 1<<12; |
101 | #ifdef HAS_BUTTON_HOLD | 101 | #ifdef HAS_BUTTON_HOLD |
102 | #ifndef BOOTLOADER | ||
102 | /* light handling */ | 103 | /* light handling */ |
103 | if (hold_button != hold_button_old) | 104 | if (hold_button != hold_button_old) |
104 | { | 105 | { |
105 | hold_button_old = hold_button; | 106 | hold_button_old = hold_button; |
106 | backlight_hold_changed(hold_button); | 107 | backlight_hold_changed(hold_button); |
107 | } | 108 | } |
109 | #else | ||
110 | (void)hold_button_old; | ||
111 | #endif | ||
108 | if (hold_button) | 112 | if (hold_button) |
109 | { | 113 | { |
110 | power_counter = HZ; | 114 | power_counter = HZ; |