|
@@ -4,10 +4,13 @@
|
4
|
4
|
#ifdef SDSUPPORT
|
5
|
5
|
|
6
|
6
|
#define MAX_DIR_DEPTH 10 // Maximum folder depth
|
7
|
|
-#define SORT_USES_RAM false // Buffer while sorting, else re-read from SD
|
8
|
|
-#define SORT_USES_MORE_RAM false // Always keep the directory in RAM
|
9
|
|
-#define SORT_LIMIT 64 // Maximum number of sorted items
|
10
|
|
-#define FOLDER_SORTING -1 // -1=above 0=none 1=below
|
|
7
|
+
|
|
8
|
+#ifdef SDCARD_SORT_ALPHA
|
|
9
|
+ #define SORT_USES_RAM false // Buffer while sorting, else re-read from SD
|
|
10
|
+ #define SORT_USES_MORE_RAM false // Always keep the directory in RAM
|
|
11
|
+ #define SORT_LIMIT 256 // Maximum number of sorted items
|
|
12
|
+ #define FOLDER_SORTING -1 // -1=above 0=none 1=below
|
|
13
|
+#endif
|
11
|
14
|
|
12
|
15
|
#include "SdFile.h"
|
13
|
16
|
enum LsAction {LS_SerialPrint,LS_Count,LS_GetFilename};
|