Browse Source

Make lcd_long_press_active private.

Marek Bel 5 years ago
parent
commit
95b0506284
2 changed files with 2 additions and 3 deletions
  1. 2 1
      Firmware/lcd.cpp
  2. 0 2
      Firmware/lcd.h

+ 2 - 1
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;

+ 0 - 2
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;