From 0b602ae101c3c518d34e227c9709fa86fae5fe45 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Hannes=20Brandst=C3=A4tter-M=C3=BCller?=
 <hannes.mueller@gmail.com>
Date: Thu, 27 Sep 2018 19:23:53 +0200
Subject: [PATCH] [2.0.x] Fix Anycubic Kossel with Probe V1, stuck LCD message
 after stow (#11929)

---
 .../config/examples/delta/Anycubic/Kossel/Configuration.h | 8 ++------
 Marlin/src/module/probe.cpp                               | 2 +-
 2 files changed, 3 insertions(+), 7 deletions(-)

diff --git a/Marlin/src/config/examples/delta/Anycubic/Kossel/Configuration.h b/Marlin/src/config/examples/delta/Anycubic/Kossel/Configuration.h
index b34c2f72a2..1efbcb23db 100644
--- a/Marlin/src/config/examples/delta/Anycubic/Kossel/Configuration.h
+++ b/Marlin/src/config/examples/delta/Anycubic/Kossel/Configuration.h
@@ -668,15 +668,11 @@
 // Mechanical endstop with COM to ground and NC to Signal uses "false" here (most common setup).
 #define X_MIN_ENDSTOP_INVERTING false  // set to true to invert the logic of the endstop.
 #define Y_MIN_ENDSTOP_INVERTING false  // set to true to invert the logic of the endstop.
-#define Z_MIN_ENDSTOP_INVERTING true  // set to true to invert the logic of the endstop.
+#define Z_MIN_ENDSTOP_INVERTING (ANYCUBIC_PROBE_VERSION + 0 == 2) // V1 is NC, V2 is NO
 #define X_MAX_ENDSTOP_INVERTING false  // set to true to invert the logic of the endstop.
 #define Y_MAX_ENDSTOP_INVERTING false  // set to true to invert the logic of the endstop.
 #define Z_MAX_ENDSTOP_INVERTING false  // set to true to invert the logic of the endstop.
-#if ANYCUBIC_PROBE_VERSION == 1
-  #define Z_MIN_PROBE_ENDSTOP_INVERTING false  // V1 Probe is NC
-#elif ANYCUBIC_PROBE_VERSION == 2
-  #define Z_MIN_PROBE_ENDSTOP_INVERTING true  // V2 Probe is NO
-#endif
+#define Z_MIN_PROBE_ENDSTOP_INVERTING Z_MIN_ENDSTOP_INVERTING
 
 /**
  * Stepper Drivers
diff --git a/Marlin/src/module/probe.cpp b/Marlin/src/module/probe.cpp
index 87f4b3b205..ede0f7a468 100644
--- a/Marlin/src/module/probe.cpp
+++ b/Marlin/src/module/probe.cpp
@@ -431,7 +431,7 @@ bool set_probe_deployed(const bool deploy) {
         BUZZ(100, 698);
 
         const char * const ds_str = deploy ? PSTR(MSG_MANUAL_DEPLOY) : PSTR(MSG_MANUAL_STOW);
-        lcd_setalertstatusPGM(ds_str);
+        lcd_setstatusPGM(ds_str);
         serialprintPGM(ds_str);
         SERIAL_EOL();
 
-- 
GitLab