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:
parent
400f673fe0
commit
cf8a16baa1
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Reference in New Issue