Add support for SD extender.

This commit is contained in:
Knutwurst
2023-06-13 13:39:30 +02:00
parent ff3c981420
commit e0bb686818

View File

@@ -646,7 +646,7 @@ void AnycubicTouchscreenClass::RenderCurrentFileList() {
currentFileOrDirectory[0] = 0; currentFileOrDirectory[0] = 0;
uint16_t selectedNumber = 0; uint16_t selectedNumber = 0;
FileList currentFileList; FileList currentFileList;
if (SpecialMenu == false) { if (SpecialMenu == false) {
currentTouchscreenSelection[0] = 0; currentTouchscreenSelection[0] = 0;
} }
@@ -1451,8 +1451,8 @@ void AnycubicTouchscreenClass::RenderCurrentFolder(uint16_t selectedNumber) {
#else #else
currentFileList.changeDir(currentTouchscreenSelection); currentFileList.changeDir(currentTouchscreenSelection);
#endif #endif
} else { } else if (currentTouchscreenSelection[0] == 0 && isMediaInserted()) {
// TODO: try to remount the SD card card.mount();
} }
if (SpecialMenu == false) { if (SpecialMenu == false) {
currentTouchscreenSelection[0] = 0; currentTouchscreenSelection[0] = 0;