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.
This commit is contained in:
Guðni Már Gilbert 2021-08-21 14:34:02 +00:00
parent 400f673fe0
commit cf8a16baa1
1 changed files with 0 additions and 1 deletions

View File

@ -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();