|
@@ -928,7 +928,6 @@ static void lcd_implementation_status_screen() {
|
928
|
928
|
if (!PAGE_CONTAINS(row_y1, row_y2)) return;
|
929
|
929
|
|
930
|
930
|
uint8_t n = LCD_WIDTH - (START_COL) - 1;
|
931
|
|
- char c;
|
932
|
931
|
if (longFilename[0]) {
|
933
|
932
|
filename = longFilename;
|
934
|
933
|
longFilename[n] = '\0'; // cutoff at screen edge
|
|
@@ -936,7 +935,7 @@ static void lcd_implementation_status_screen() {
|
936
|
935
|
|
937
|
936
|
if (isDir) lcd_print(LCD_STR_FOLDER[0]);
|
938
|
937
|
|
939
|
|
- while ((c = *filename) && n > 0) {
|
|
938
|
+ while (char c = *filename) {
|
940
|
939
|
n -= lcd_print_and_count(c);
|
941
|
940
|
filename++;
|
942
|
941
|
}
|