Ver código fonte

LCD filename already concatentated

Scott Lahteine 7 anos atrás
pai
commit
a21201a713
1 arquivos alterados com 1 adições e 2 exclusões
  1. 1
    2
      Marlin/ultralcd_impl_HD44780.h

+ 1
- 2
Marlin/ultralcd_impl_HD44780.h Ver arquivo

@@ -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
       }

Carregando…
Cancelar
Salvar