Browse Source

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
Guðni Már Gilbert 2 years ago
parent
commit
be7c1d55c8
1 changed files with 0 additions and 5 deletions
  1. 0 5
      Firmware/ultralcd.cpp

+ 0 - 5
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