瀏覽代碼

LCD filename already concatentated

Scott Lahteine 7 年之前
父節點
當前提交
a21201a713
共有 1 個文件被更改,包括 1 次插入2 次删除
  1. 1
    2
      Marlin/ultralcd_impl_HD44780.h

+ 1
- 2
Marlin/ultralcd_impl_HD44780.h 查看文件

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

Loading…
取消
儲存