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
This commit is contained in:
Guðni Már Gilbert 2022-09-17 09:13:07 +00:00 committed by Yuri D'Elia
parent 540ce31082
commit 33495d7516

View file

@ -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