Browse Source

Remove one call to lcd_timeoutToStatus.start

Saves 8 bytes of Flash memory

This call is redundant and when moving between menus
it gets called multiple times which results in waste
of clock cycles.

lcd_timeoutToStatus.start() is called from menu_lcd_lcdupdate_func()
which is enough.
Guðni Már Gilbert 2 years ago
parent
commit
cf8a16baa1
1 changed files with 0 additions and 1 deletions
  1. 0 1
      Firmware/lcd.cpp

+ 0 - 1
Firmware/lcd.cpp

@@ -741,7 +741,6 @@ void lcd_buttons_update(void)
 
     if (READ(BTN_ENC) == 0)
     { //button is pressed
-        lcd_timeoutToStatus.start();
         if (!buttonBlanking.running() || buttonBlanking.expired(BUTTON_BLANKING_TIME)) {
             buttonBlanking.start();
             safetyTimer.start();