From 5037d1edbc98261cb99b8ee30257f8813dfb6d77 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gu=C3=B0ni=20M=C3=A1r=20Gilbert?= Date: Sat, 10 Dec 2022 20:32:40 +0000 Subject: [PATCH] delay_keep_alive calls manage_heater and manage_inactivity No need to call them again, the for-loop is very quick Change in memory: Flash: -10 bytes SRAM: 0 bytes --- Firmware/ultralcd.cpp | 3 --- 1 file changed, 3 deletions(-) diff --git a/Firmware/ultralcd.cpp b/Firmware/ultralcd.cpp index f17760352..9d0e7f29b 100644 --- a/Firmware/ultralcd.cpp +++ b/Firmware/ultralcd.cpp @@ -3207,9 +3207,6 @@ uint8_t lcd_show_multiscreen_message_with_choices_and_wait_P( current_selection = LCD_BUTTON_TIMEOUT; goto exit; } - manage_heater(); - manage_inactivity(true); - if (abs(enc_dif - lcd_encoder_diff) >= ENCODER_PULSES_PER_STEP) { if (msg_next == NULL) { if (third_choice) { // third_choice is not nullptr, safe to dereference