Skip to content

Commit

Permalink
🐛 Reset workDirDepth in cdroot() (MarlinFirmware#22441)
Browse files Browse the repository at this point in the history
  • Loading branch information
vyacheslav-shubin authored and ptoal committed Dec 16, 2021
1 parent b650eeb commit ffe0cb6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Marlin/src/sd/cardreader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1024,6 +1024,7 @@ int8_t CardReader::cdup() {
void CardReader::cdroot() {
workDir = root;
flag.workDirIsRoot = true;
workDirDepth = 0;
TERN_(SDCARD_SORT_ALPHA, presort());
}

Expand Down

0 comments on commit ffe0cb6

Please sign in to comment.