From 89fc9f7a62e2c54e17956e89fa28cb4ca047ba73 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gu=C3=B0ni=20M=C3=A1r=20Gilbert?= Date: Sat, 19 Feb 2022 09:49:32 +0000 Subject: [PATCH] Optimise lcd_menu_show_sensors_state() flash: -22 RAM: 0 menu_lcd_lcdupdate_func() takes care of starting lcd_timeoutToStatus if the knob is clicked. When the knob is clicked we only want to back out of the menu. This changes makes the menus slightly more conistant behind the scenes. --- Firmware/ultralcd.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/Firmware/ultralcd.cpp b/Firmware/ultralcd.cpp index 934b0abb..a27515f0 100755 --- a/Firmware/ultralcd.cpp +++ b/Firmware/ultralcd.cpp @@ -3565,11 +3565,7 @@ void lcd_menu_show_sensors_state() // NOT static due to using ins { lcd_timeoutToStatus.stop(); lcd_show_sensors_state(); - if(LCD_CLICKED) - { - lcd_timeoutToStatus.start(); - menu_back(); - } + menu_back_if_clicked(); } void prusa_statistics_err(char c){