Browse Source

Fix display issue with SD_ALPHA_SORT caching

Scott Lahteine 7 years ago
parent
commit
a6e95c7d25
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      Marlin/cardreader.h

+ 2
- 2
Marlin/cardreader.h View File

@@ -120,10 +120,10 @@ private:
120 120
           char **sortshort, **sortnames;
121 121
         #else
122 122
           char sortshort[SDSORT_LIMIT][FILENAME_LENGTH];
123
-          char sortnames[SDSORT_LIMIT][FILENAME_LENGTH];
123
+          char sortnames[SDSORT_LIMIT][LONG_FILENAME_LENGTH];
124 124
         #endif
125 125
       #elif DISABLED(SDSORT_USES_STACK)
126
-        char sortnames[SDSORT_LIMIT][FILENAME_LENGTH];
126
+        char sortnames[SDSORT_LIMIT][LONG_FILENAME_LENGTH];
127 127
       #endif
128 128
 
129 129
       // Folder sorting uses an isDir array when caching items.

Loading…
Cancel
Save