Rebuild SD file sort array on Stop SD Print (#9975)
Thanks Chuck Hellebuyck.
This commit is contained in:
@@ -27,6 +27,8 @@
|
||||
|
||||
#if ENABLED(SDSUPPORT)
|
||||
|
||||
#define SD_RESORT ENABLED(SDCARD_SORT_ALPHA) && ENABLED(SDSORT_DYNAMIC_RAM)
|
||||
|
||||
#define MAX_DIR_DEPTH 10 // Maximum folder depth
|
||||
|
||||
#include "SdFile.h"
|
||||
@@ -52,7 +54,11 @@ public:
|
||||
void release();
|
||||
void openAndPrintFile(const char *name);
|
||||
void startFileprint();
|
||||
void stopSDPrint();
|
||||
void stopSDPrint(
|
||||
#if SD_RESORT
|
||||
const bool re_sort=false
|
||||
#endif
|
||||
);
|
||||
void getStatus();
|
||||
void printingHasFinished();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user