瀏覽代碼

Fix for MAX_VFAT_ENTRIES sanity check

Scott Lahteine 6 年之前
父節點
當前提交
8b7c1e9cec
共有 2 個檔案被更改,包括 7 行新增7 行删除
  1. 7
    0
      Marlin/Conditionals_post.h
  2. 0
    7
      Marlin/SdFatConfig.h

+ 7
- 0
Marlin/Conditionals_post.h 查看文件

@@ -1053,4 +1053,11 @@
1053 1053
     #endif
1054 1054
   #endif
1055 1055
 
1056
+  // Number of VFAT entries used. Each entry has 13 UTF-16 characters
1057
+  #if ENABLED(SCROLL_LONG_FILENAMES)
1058
+    #define MAX_VFAT_ENTRIES (5)
1059
+  #else
1060
+    #define MAX_VFAT_ENTRIES (2)
1061
+  #endif
1062
+
1056 1063
 #endif // CONDITIONALS_POST_H

+ 0
- 7
Marlin/SdFatConfig.h 查看文件

@@ -133,13 +133,6 @@
133 133
 
134 134
 #define FILENAME_LENGTH 13 // Number of UTF-16 characters per entry
135 135
 
136
-// Number of VFAT entries used. Each entry has 13 UTF-16 characters
137
-#if ENABLED(SCROLL_LONG_FILENAMES)
138
-  #define MAX_VFAT_ENTRIES (5)
139
-#else
140
-  #define MAX_VFAT_ENTRIES (2)
141
-#endif
142
-
143 136
 // Total bytes needed to store a single long filename
144 137
 #define LONG_FILENAME_LENGTH (FILENAME_LENGTH * MAX_VFAT_ENTRIES + 1)
145 138
 

Loading…
取消
儲存