Support for 10 level deep SD folder hierarchy
This commit is contained in:
parent
0ef54f2f85
commit
a5cd582665
2 changed files with 17 additions and 7 deletions
|
|
@ -3,6 +3,8 @@
|
|||
|
||||
#ifdef SDSUPPORT
|
||||
|
||||
#define MAX_DIR_DEPTH 10
|
||||
|
||||
#include "SdFile.h"
|
||||
enum LsAction {LS_SerialPrint,LS_Count,LS_GetFilename};
|
||||
class CardReader
|
||||
|
|
@ -53,7 +55,8 @@ public:
|
|||
bool filenameIsDir;
|
||||
int lastnr; //last number of the autostart;
|
||||
private:
|
||||
SdFile root,*curDir,workDir,workDirParent,workDirParentParent;
|
||||
SdFile root,*curDir,workDir,workDirParents[MAX_DIR_DEPTH];
|
||||
uint16_t workDirDepth;
|
||||
Sd2Card card;
|
||||
SdVolume volume;
|
||||
SdFile file;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue