From 6e7418338150f2e16c21811cb067b52cca3db36a Mon Sep 17 00:00:00 2001 From: Knutwurst <36196269+knutwurst@users.noreply.github.com> Date: Mon, 28 Jun 2021 19:11:56 +0200 Subject: [PATCH] If SpecialMenu is selected, the current menu item is not always deselected after clicking on reload/ok. --- Marlin/src/lcd/anycubic_touchscreen.cpp | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/Marlin/src/lcd/anycubic_touchscreen.cpp b/Marlin/src/lcd/anycubic_touchscreen.cpp index bdb19744..94ef9b59 100755 --- a/Marlin/src/lcd/anycubic_touchscreen.cpp +++ b/Marlin/src/lcd/anycubic_touchscreen.cpp @@ -1584,7 +1584,9 @@ void AnycubicTouchscreenClass::GetCommandFromTFT() break; case 8: // A8 GET SD LIST #ifdef SDSUPPORT - currentTouchscreenSelection[0] = 0; + if(SpecialMenu == false) { + currentTouchscreenSelection[0] = 0; + } #if DISABLED(KNUTWURST_SPECIAL_MENU_WO_SD) if (!IS_SD_INSERTED()) { @@ -1676,8 +1678,10 @@ void AnycubicTouchscreenClass::GetCommandFromTFT() { strcpy(currentTouchscreenSelection, TFTstrchr_pointer + 4); } else { - currentTouchscreenSelection[0] = 0; - + if(SpecialMenu == false) { + currentTouchscreenSelection[0] = 0; + } + #ifdef ANYCUBIC_TFT_DEBUG SERIAL_ECHOLNPGM("TFT Serial Debug: Normal file open path"); #endif @@ -1980,7 +1984,9 @@ void AnycubicTouchscreenClass::GetCommandFromTFT() } } } - currentTouchscreenSelection[0] = 0; + if(SpecialMenu == false) { + currentTouchscreenSelection[0] = 0; + } #endif break; #ifdef SERVO_ENDSTOPS