Add support for SD extender.
This commit is contained in:
@@ -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;
|
||||||
|
Reference in New Issue
Block a user