diff --git a/Firmware/lcd.cpp b/Firmware/lcd.cpp index 0fad73ad..2204fa08 100644 --- a/Firmware/lcd.cpp +++ b/Firmware/lcd.cpp @@ -670,7 +670,7 @@ uint8_t lcd_update_enabled = 1; uint32_t lcd_next_update_millis = 0; uint8_t lcd_status_update_delay = 0; -uint8_t lcd_long_press_active = 0; + lcd_longpress_func_t lcd_longpress_func = 0; @@ -771,6 +771,7 @@ void lcd_update_enable(uint8_t enabled) extern LongTimer safetyTimer; void lcd_buttons_update(void) { + static uint8_t lcd_long_press_active = 0; uint8_t newbutton = 0; if (READ(BTN_EN1) == 0) newbutton |= EN_A; if (READ(BTN_EN2) == 0) newbutton |= EN_B; diff --git a/Firmware/lcd.h b/Firmware/lcd.h index 8554922d..12935188 100644 --- a/Firmware/lcd.h +++ b/Firmware/lcd.h @@ -116,8 +116,6 @@ extern uint32_t lcd_next_update_millis; extern uint8_t lcd_status_update_delay; -extern uint8_t lcd_long_press_active; - extern lcd_longpress_func_t lcd_longpress_func; extern lcd_charsetup_func_t lcd_charsetup_func;