mirror of
https://github.com/MarlinFirmware/Marlin.git
synced 2024-11-23 12:04:19 +00:00
Patch SD file draw bug
This commit is contained in:
parent
b211fa4e1f
commit
dac5f20a01
@ -918,14 +918,15 @@ static void lcd_implementation_status_screen() {
|
||||
if (!PAGE_CONTAINS(row_y1, row_y2)) return;
|
||||
|
||||
uint8_t n = LCD_WIDTH - (START_COL) - 1;
|
||||
char c;
|
||||
if (longFilename[0]) {
|
||||
filename = longFilename;
|
||||
longFilename[n] = '\0';
|
||||
longFilename[n] = '\0'; // cutoff at screen edge
|
||||
}
|
||||
|
||||
if (isDir) lcd_print(LCD_STR_FOLDER[0]);
|
||||
|
||||
while (char c = *filename) {
|
||||
while ((c = *filename) && n > 0) {
|
||||
n -= lcd_print_and_count(c);
|
||||
filename++;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user