From dea52953f03621b17d8f740300452813629b00a0 Mon Sep 17 00:00:00 2001 From: Knutwurst <36196269+knutwurst@users.noreply.github.com> Date: Wed, 3 Jun 2020 08:37:39 +0200 Subject: [PATCH] Fix for special menu. Also add exit item at the end of the list. --- Marlin/src/lcd/anycubic_touchscreen.cpp | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/Marlin/src/lcd/anycubic_touchscreen.cpp b/Marlin/src/lcd/anycubic_touchscreen.cpp index c5e68e70..52e67cfc 100755 --- a/Marlin/src/lcd/anycubic_touchscreen.cpp +++ b/Marlin/src/lcd/anycubic_touchscreen.cpp @@ -427,14 +427,14 @@ void AnycubicTouchscreenClass::HandleSpecialMenu() { SpecialMenu = true; } - else if (strcmp(SelectedDirectory, "") == 0) + else if (strcmp(SelectedDirectory, "") == 0) { - SERIAL_ECHOLNPGM("Special Menu: Auto Tune Hotend PID"); + SERIAL_ECHOLNPGM("Special Menu: PID Tune Hotend"); queue.enqueue_now_P(PSTR("M106 S204\nM303 E0 S210 C15 U1")); } - else if (strcmp(SelectedDirectory, "") == 0) + else if (strcmp(SelectedDirectory, "") == 0) { - SERIAL_ECHOLNPGM("Special Menu: Auto Tune Hotbed Pid"); + SERIAL_ECHOLNPGM("Special Menu: PID Tune Ultrabase"); queue.enqueue_now_P(PSTR("M303 E-1 S60 C6 U1")); } else if (strcmp(SelectedDirectory, "") == 0) @@ -451,9 +451,9 @@ void AnycubicTouchscreenClass::HandleSpecialMenu() buzzer.tone(105, 1661); buzzer.tone(210, 1108); } - else if (strcmp(SelectedDirectory, "") == 0) + else if (strcmp(SelectedDirectory, "") == 0) { - SERIAL_ECHOLNPGM("Special Menu: Preheat Bed"); + SERIAL_ECHOLNPGM("Special Menu: Preheat Ultrabase"); queue.enqueue_now_P(PSTR("M140 S60")); } else if (strcmp(SelectedDirectory, "") == 0) @@ -508,7 +508,7 @@ void AnycubicTouchscreenClass::Ls() { switch (filenumber) { - case 0: // First Page + case 0: // Page 1 ANYCUBIC_SERIAL_PROTOCOLLNPGM(""); ANYCUBIC_SERIAL_PROTOCOLLNPGM(""); ANYCUBIC_SERIAL_PROTOCOLLNPGM(""); @@ -519,7 +519,7 @@ void AnycubicTouchscreenClass::Ls() ANYCUBIC_SERIAL_PROTOCOLLNPGM(""); break; - case 4: // Second Page + case 4: // Page 2 ANYCUBIC_SERIAL_PROTOCOLLNPGM(""); ANYCUBIC_SERIAL_PROTOCOLLNPGM(""); ANYCUBIC_SERIAL_PROTOCOLLNPGM(""); @@ -530,7 +530,7 @@ void AnycubicTouchscreenClass::Ls() ANYCUBIC_SERIAL_PROTOCOLLNPGM(""); break; - case 8: // Third Page + case 8: // Page 3 ANYCUBIC_SERIAL_PROTOCOLLNPGM(""); ANYCUBIC_SERIAL_PROTOCOLLNPGM(""); ANYCUBIC_SERIAL_PROTOCOLLNPGM(""); @@ -554,6 +554,8 @@ void AnycubicTouchscreenClass::Ls() */ default: + ANYCUBIC_SERIAL_PROTOCOLLNPGM(""); + ANYCUBIC_SERIAL_PROTOCOLLNPGM(""); break; } }