From cf8a16baa17dffb656ca5119729f2090c4b7bfb2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gu=C3=B0ni=20M=C3=A1r=20Gilbert?= Date: Sat, 21 Aug 2021 14:34:02 +0000 Subject: [PATCH] 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. --- Firmware/lcd.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/Firmware/lcd.cpp b/Firmware/lcd.cpp index 37b70f1a1..2398e33b7 100644 --- a/Firmware/lcd.cpp +++ b/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();