Przeglądaj źródła

LCD filename already concatentated

Scott Lahteine 7 lat temu
rodzic
commit
a21201a713
1 zmienionych plików z 1 dodań i 2 usunięć
  1. 1
    2
      Marlin/ultralcd_impl_HD44780.h

+ 1
- 2
Marlin/ultralcd_impl_HD44780.h Wyświetl plik

@@ -987,7 +987,6 @@ static void lcd_implementation_status_screen() {
987 987
 
988 988
     static void lcd_implementation_drawmenu_sd(const bool sel, const uint8_t row, const char* const pstr, const char* filename, char* const longFilename, const uint8_t concat, const char post_char) {
989 989
       UNUSED(pstr);
990
-      char c;
991 990
       uint8_t n = LCD_WIDTH - concat;
992 991
       lcd.setCursor(0, row);
993 992
       lcd.print(sel ? '>' : ' ');
@@ -995,7 +994,7 @@ static void lcd_implementation_status_screen() {
995 994
         filename = longFilename;
996 995
         longFilename[n] = '\0';
997 996
       }
998
-      while ((c = *filename) && n > 0) {
997
+      while (char c = *filename) {
999 998
         n -= charset_mapper(c);
1000 999
         filename++;
1001 1000
       }

Ładowanie…
Anuluj
Zapisz