1
0
mirror of https://github.com/MarlinFirmware/Marlin.git synced 2024-11-23 20:18:52 +00:00

🐛 Reset workDirDepth in cdroot() (#22441)

This commit is contained in:
vyacheslav-shubin 2021-07-28 22:55:04 +03:00 committed by GitHub
parent 296d0d495c
commit 4ca5f6da3f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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