Unify special menu defines for both display types. Also fix NoSD message and error, when no SD card is present.

This commit is contained in:
Knutwurst
2023-06-03 18:51:02 +02:00
parent 011752e02a
commit 6bc410a0e3
2 changed files with 44 additions and 91 deletions

View File

@@ -622,6 +622,7 @@
void AnycubicTouchscreenClass::RenderCurrentFileList() {
currentFileOrDirectory[0] = 0;
if (SpecialMenu == false) {
currentTouchscreenSelection[0] = 0;
}
@@ -629,11 +630,8 @@ void AnycubicTouchscreenClass::RenderCurrentFileList() {
SENDLINE_PGM("FN "); // Filelist start
if (!isMediaInserted() && !SpecialMenu) {
SENDLINE_DBG_PGM("J02", "TFT Serial Debug: No SD Card mounted to render Current File List... J02");
SENDLINE_PGM(SM_SPECIAL_MENU_S);
SENDLINE_PGM(SM_SPECIAL_MENU_L);
} else {
uint16_t selectedNumber = 0;
FileList currentFileList;