Ver código fonte

LCD filename already concatenated

Scott Lahteine 6 anos atrás
pai
commit
53f2f188f2
1 arquivos alterados com 1 adições e 2 exclusões
  1. 1
    2
      Marlin/ultralcd_impl_DOGM.h

+ 1
- 2
Marlin/ultralcd_impl_DOGM.h Ver arquivo

@@ -918,7 +918,6 @@ static void lcd_implementation_status_screen() {
918 918
       if (!PAGE_CONTAINS(row_y1, row_y2)) return;
919 919
 
920 920
       uint8_t n = LCD_WIDTH - (START_COL) - 1;
921
-      char c;
922 921
       if (longFilename[0]) {
923 922
         filename = longFilename;
924 923
         longFilename[n] = '\0'; // cutoff at screen edge
@@ -926,7 +925,7 @@ static void lcd_implementation_status_screen() {
926 925
 
927 926
       if (isDir) lcd_print(LCD_STR_FOLDER[0]);
928 927
 
929
-      while ((c = *filename) && n > 0) {
928
+      while (char c = *filename) {
930 929
         n -= lcd_print_and_count(c);
931 930
         filename++;
932 931
       }

Carregando…
Cancelar
Salvar