Rebuild SD file sort array on Stop SD Print (#9975)

Thanks Chuck Hellebuyck.
This commit is contained in:
Scott Lahteine
2018-03-07 01:42:30 -06:00
committed by GitHub
parent 1ed1882766
commit 1f77930e01
4 changed files with 29 additions and 9 deletions

View File

@@ -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();