From 5cfdceb18442187289f2d817b954ea7e93147abe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gu=C3=B0ni=20M=C3=A1r=20Gilbert?= Date: Wed, 3 May 2023 23:45:28 +0000 Subject: [PATCH] Remove redundant lcd_draw_update assignment When scrolling through menu items, the rotation event on the knob takes care of updating the LCD by setting lcd_draw_update. The menu code doesn't need to do it as well. Change in memory: Flash: -6 bytes SRAM: 0 bytes --- Firmware/menu.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/Firmware/menu.cpp b/Firmware/menu.cpp index 3b61379cd..67a9ee9dc 100755 --- a/Firmware/menu.cpp +++ b/Firmware/menu.cpp @@ -90,7 +90,6 @@ void menu_end(void) if (((uint8_t)lcd_encoder) >= menu_top + LCD_HEIGHT) { menu_top = lcd_encoder - LCD_HEIGHT + 1; - lcd_draw_update = 1; menu_line = menu_top - 1; menu_row = -1; }