Ender 3 V2 followup
This commit is contained in:
parent
b5f5736c90
commit
8b96d885e4
1 changed files with 4 additions and 2 deletions
|
@ -185,7 +185,7 @@ int CardReader::countItems(SdFile dir) {
|
||||||
while (dir.readDir(&p, longFilename) > 0)
|
while (dir.readDir(&p, longFilename) > 0)
|
||||||
c += is_dir_or_gcode(p);
|
c += is_dir_or_gcode(p);
|
||||||
|
|
||||||
#if ENABLED(SDCARD_SORT_ALPHA) && SDSORT_USES_RAM && SDSORT_CACHE_NAMES
|
#if ALL(SDCARD_SORT_ALPHA, SDSORT_USES_RAM, SDSORT_CACHE_NAMES)
|
||||||
nrFiles = c;
|
nrFiles = c;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -430,7 +430,9 @@ void CardReader::release() {
|
||||||
endFilePrint();
|
endFilePrint();
|
||||||
flag.mounted = false;
|
flag.mounted = false;
|
||||||
flag.workDirIsRoot = true;
|
flag.workDirIsRoot = true;
|
||||||
|
#if ALL(SDCARD_SORT_ALPHA, SDSORT_USES_RAM, SDSORT_CACHE_NAMES)
|
||||||
nrFiles = 0;
|
nrFiles = 0;
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
void CardReader::openAndPrintFile(const char *name) {
|
void CardReader::openAndPrintFile(const char *name) {
|
||||||
|
|
Reference in a new issue