Skip to content

Commit e0bb686

Browse files
committed
Add support for SD extender.
1 parent ff3c981 commit e0bb686

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Marlin/src/lcd/extui/knutwurst/anycubic_touchscreen.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -646,7 +646,7 @@ void AnycubicTouchscreenClass::RenderCurrentFileList() {
646646
currentFileOrDirectory[0] = 0;
647647
uint16_t selectedNumber = 0;
648648
FileList currentFileList;
649-
649+
650650
if (SpecialMenu == false) {
651651
currentTouchscreenSelection[0] = 0;
652652
}
@@ -1451,8 +1451,8 @@ void AnycubicTouchscreenClass::RenderCurrentFolder(uint16_t selectedNumber) {
14511451
#else
14521452
currentFileList.changeDir(currentTouchscreenSelection);
14531453
#endif
1454-
} else {
1455-
// TODO: try to remount the SD card
1454+
} else if (currentTouchscreenSelection[0] == 0 && isMediaInserted()) {
1455+
card.mount();
14561456
}
14571457
if (SpecialMenu == false) {
14581458
currentTouchscreenSelection[0] = 0;

0 commit comments

Comments
 (0)