Fix display issue with SD_SORT_ALPHA cached names

This commit is contained in:
Scott Lahteine 2017-10-07 15:08:08 -05:00 committed by GitHub
parent 9d0e4ea3d5
commit 12aa1b999a

View File

@ -117,10 +117,10 @@ private:
char **sortshort, **sortnames; char **sortshort, **sortnames;
#else #else
char sortshort[SDSORT_LIMIT][FILENAME_LENGTH]; char sortshort[SDSORT_LIMIT][FILENAME_LENGTH];
char sortnames[SDSORT_LIMIT][FILENAME_LENGTH]; char sortnames[SDSORT_LIMIT][LONG_FILENAME_LENGTH];
#endif #endif
#elif DISABLED(SDSORT_USES_STACK) #elif DISABLED(SDSORT_USES_STACK)
char sortnames[SDSORT_LIMIT][FILENAME_LENGTH]; char sortnames[SDSORT_LIMIT][LONG_FILENAME_LENGTH];
#endif #endif
// Folder sorting uses an isDir array when caching items. // Folder sorting uses an isDir array when caching items.