From 53f2f188f249c2ae32cb77d0eceaaf726f547dc7 Mon Sep 17 00:00:00 2001 From: Scott Lahteine Date: Sat, 7 Oct 2017 15:11:28 -0500 Subject: [PATCH] LCD filename already concatenated --- Marlin/ultralcd_impl_DOGM.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Marlin/ultralcd_impl_DOGM.h b/Marlin/ultralcd_impl_DOGM.h index 930d0ae43..19b4b558e 100644 --- a/Marlin/ultralcd_impl_DOGM.h +++ b/Marlin/ultralcd_impl_DOGM.h @@ -918,7 +918,6 @@ 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'; // cutoff at screen edge @@ -926,7 +925,7 @@ static void lcd_implementation_status_screen() { if (isDir) lcd_print(LCD_STR_FOLDER[0]); - while ((c = *filename) && n > 0) { + while (char c = *filename) { n -= lcd_print_and_count(c); filename++; }