From 33495d7516b977177bee20c23d6408b858d42473 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gu=C3=B0ni=20M=C3=A1r=20Gilbert?= Date: Sat, 17 Sep 2022 09:13:07 +0000 Subject: [PATCH] Remove redundant for-loop Now that lcd_status_message is now initialised correctly at boot-up, this for-loop is no longer required. Now lcd_status_message is only set in lcd_updatestatus() which always calls lcd_finishstatus() lcd_finishstatus() makes sure the message does not exceed 20 characters Saves 34 bytes of flash --- Firmware/ultralcd.cpp | 5 ----- 1 file changed, 5 deletions(-) diff --git a/Firmware/ultralcd.cpp b/Firmware/ultralcd.cpp index 91972153e..cd322b126 100755 --- a/Firmware/ultralcd.cpp +++ b/Firmware/ultralcd.cpp @@ -669,11 +669,6 @@ void lcdui_print_status_line(void) break; } } - - // Fill the rest of line to have nice and clean output - for(uint8_t fillspace = 0; fillspace < LCD_WIDTH; fillspace++) - if ((lcd_status_message[fillspace] <= 31 )) - lcd_print(' '); } //! @brief Show Status Screen