Parcourir la source

Fix for MAX_VFAT_ENTRIES sanity check

Scott Lahteine il y a 7 ans
Parent
révision
8b7c1e9cec
2 fichiers modifiés avec 7 ajouts et 7 suppressions
  1. 7
    0
      Marlin/Conditionals_post.h
  2. 0
    7
      Marlin/SdFatConfig.h

+ 7
- 0
Marlin/Conditionals_post.h Voir le fichier

1053
     #endif
1053
     #endif
1054
   #endif
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
 #endif // CONDITIONALS_POST_H
1063
 #endif // CONDITIONALS_POST_H

+ 0
- 7
Marlin/SdFatConfig.h Voir le fichier

133
 
133
 
134
 #define FILENAME_LENGTH 13 // Number of UTF-16 characters per entry
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
 // Total bytes needed to store a single long filename
136
 // Total bytes needed to store a single long filename
144
 #define LONG_FILENAME_LENGTH (FILENAME_LENGTH * MAX_VFAT_ENTRIES + 1)
137
 #define LONG_FILENAME_LENGTH (FILENAME_LENGTH * MAX_VFAT_ENTRIES + 1)
145
 
138
 

Chargement…
Annuler
Enregistrer