Clean up comments, USB flash, NULLs

This commit is contained in:
Scott Lahteine committed 2020-10-25 04:10:00 -05:00
1 parent 00fbe50bbe
commit ec23e37a4a
45 files changed
+231 -238

No files matched your search

+1 -1
View File
@@ -863,7 +863,7 @@ void MarlinUI::draw_status_screen() {
lcd.setCursor(0, MIDDLE_Y);
lcd.write(COLOR_EDIT);
lcd_put_u8str_P(pstr);
if (value != nullptr) {
if (value) {
lcd.write(':');
lcd.setCursor((LCD_WIDTH - 1) - (utf8_strlen(value) + 1), MIDDLE_Y); // Right-justified, padded by spaces
lcd.write(' '); // Overwrite char if value gets shorter