Add TODO for SD Extender support.

This commit is contained in:
Knutwurst
2023-06-13 12:45:35 +02:00
parent f06a7a1454
commit ff3c981420

View File

@@ -1439,7 +1439,7 @@ void AnycubicTouchscreenClass::RenderCurrentFolder(uint16_t selectedNumber) {
SERIAL_ECHOLNPGM("TFT Serial Debug: Directory UP (cd ..)"); SERIAL_ECHOLNPGM("TFT Serial Debug: Directory UP (cd ..)");
#endif #endif
currentFileList.upDir(); currentFileList.upDir();
} else if (isMediaInserted()) { } else if (isMediaInserted() && (currentFileList.count() > 0)) {
#ifdef ANYCUBIC_TFT_DEBUG #ifdef ANYCUBIC_TFT_DEBUG
SERIAL_ECHOLNPGM("TFT Serial Debug: Enter Directoy"); SERIAL_ECHOLNPGM("TFT Serial Debug: Enter Directoy");
#endif #endif
@@ -1451,6 +1451,8 @@ void AnycubicTouchscreenClass::RenderCurrentFolder(uint16_t selectedNumber) {
#else #else
currentFileList.changeDir(currentTouchscreenSelection); currentFileList.changeDir(currentTouchscreenSelection);
#endif #endif
} else {
// TODO: try to remount the SD card
} }
if (SpecialMenu == false) { if (SpecialMenu == false) {
currentTouchscreenSelection[0] = 0; currentTouchscreenSelection[0] = 0;