🐛 Reset workDirDepth in cdroot() (#22441)

2.0.x
vyacheslav-shubin 3 years ago committed by Scott Lahteine
parent 55cf3bd5ee
commit 99f917c022

@ -1024,6 +1024,7 @@ int8_t CardReader::cdup() {
void CardReader::cdroot() { void CardReader::cdroot() {
workDir = root; workDir = root;
flag.workDirIsRoot = true; flag.workDirIsRoot = true;
workDirDepth = 0;
TERN_(SDCARD_SORT_ALPHA, presort()); TERN_(SDCARD_SORT_ALPHA, presort());
} }

Loading…
Cancel
Save