diff --git a/firmware/target/arm/as3525/sansa-e200v2/button-e200v2.c b/firmware/target/arm/as3525/sansa-e200v2/button-e200v2.c index 6ca3425651..8654419f10 100644 --- a/firmware/target/arm/as3525/sansa-e200v2/button-e200v2.c +++ b/firmware/target/arm/as3525/sansa-e200v2/button-e200v2.c @@ -43,8 +43,9 @@ static long last_wheel_post = 0; static long next_backlight_on = 0; /* Buttons */ static bool hold_button = false; +#ifndef BOOTLOADER static bool hold_button_old = false; -#define _button_hold() hold_button +#endif extern void lcd_button_support(void); @@ -55,7 +56,7 @@ void button_init_device(void) bool button_hold(void) { - return _button_hold(); + return hold_button; } void clickwheel(unsigned int wheel_value)