LCD filename already concatentated
This commit is contained in:
parent
12aa1b999a
commit
ae1a18d0a1
1 changed files with 1 additions and 2 deletions
|
@ -928,7 +928,6 @@ static void lcd_implementation_status_screen() {
|
||||||
if (!PAGE_CONTAINS(row_y1, row_y2)) return;
|
if (!PAGE_CONTAINS(row_y1, row_y2)) return;
|
||||||
|
|
||||||
uint8_t n = LCD_WIDTH - (START_COL) - 1;
|
uint8_t n = LCD_WIDTH - (START_COL) - 1;
|
||||||
char c;
|
|
||||||
if (longFilename[0]) {
|
if (longFilename[0]) {
|
||||||
filename = longFilename;
|
filename = longFilename;
|
||||||
longFilename[n] = '\0'; // cutoff at screen edge
|
longFilename[n] = '\0'; // cutoff at screen edge
|
||||||
|
@ -936,7 +935,7 @@ static void lcd_implementation_status_screen() {
|
||||||
|
|
||||||
if (isDir) lcd_print(LCD_STR_FOLDER[0]);
|
if (isDir) lcd_print(LCD_STR_FOLDER[0]);
|
||||||
|
|
||||||
while ((c = *filename) && n > 0) {
|
while (char c = *filename) {
|
||||||
n -= lcd_print_and_count(c);
|
n -= lcd_print_and_count(c);
|
||||||
filename++;
|
filename++;
|
||||||
}
|
}
|
||||||
|
|
Reference in a new issue