mirror of
https://github.com/MarlinFirmware/Marlin.git
synced 2026-02-19 19:02:25 -07:00
SD Menu patches
This commit is contained in:
parent
3cf31205bc
commit
5a1f1305f0
3 changed files with 8 additions and 6 deletions
|
|
@ -626,13 +626,14 @@ void CardReader::chdir(const char * relpath) {
|
|||
}
|
||||
}
|
||||
|
||||
void CardReader::updir() {
|
||||
if (workDirDepth > 0) { // At least 1 dir has been saved
|
||||
workDir = --workDirDepth ? workDirParents[workDirDepth] : root; // Use parent, or root if none
|
||||
int8_t CardReader::updir() {
|
||||
if (workDirDepth > 0) { // At least 1 dir has been saved
|
||||
workDir = --workDirDepth ? workDirParents[workDirDepth - 1] : root; // Use parent, or root if none
|
||||
#if ENABLED(SDCARD_SORT_ALPHA)
|
||||
presort();
|
||||
#endif
|
||||
}
|
||||
return workDirDepth;
|
||||
}
|
||||
|
||||
#if ENABLED(SDCARD_SORT_ALPHA)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue