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:
parent
540ce31082
commit
33495d7516
1 changed files with 0 additions and 5 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue