Quellcode durchsuchen

[2.0.x] Fix Anycubic Kossel with Probe V1, stuck LCD message after stow (#11929)

Hannes Brandstätter-Müller vor 6 Jahren
Ursprung
Commit
0b602ae101

+ 2
- 6
Marlin/src/config/examples/delta/Anycubic/Kossel/Configuration.h Datei anzeigen

@@ -668,15 +668,11 @@
668 668
 // Mechanical endstop with COM to ground and NC to Signal uses "false" here (most common setup).
669 669
 #define X_MIN_ENDSTOP_INVERTING false  // set to true to invert the logic of the endstop.
670 670
 #define Y_MIN_ENDSTOP_INVERTING false  // set to true to invert the logic of the endstop.
671
-#define Z_MIN_ENDSTOP_INVERTING true  // set to true to invert the logic of the endstop.
671
+#define Z_MIN_ENDSTOP_INVERTING (ANYCUBIC_PROBE_VERSION + 0 == 2) // V1 is NC, V2 is NO
672 672
 #define X_MAX_ENDSTOP_INVERTING false  // set to true to invert the logic of the endstop.
673 673
 #define Y_MAX_ENDSTOP_INVERTING false  // set to true to invert the logic of the endstop.
674 674
 #define Z_MAX_ENDSTOP_INVERTING false  // set to true to invert the logic of the endstop.
675
-#if ANYCUBIC_PROBE_VERSION == 1
676
-  #define Z_MIN_PROBE_ENDSTOP_INVERTING false  // V1 Probe is NC
677
-#elif ANYCUBIC_PROBE_VERSION == 2
678
-  #define Z_MIN_PROBE_ENDSTOP_INVERTING true  // V2 Probe is NO
679
-#endif
675
+#define Z_MIN_PROBE_ENDSTOP_INVERTING Z_MIN_ENDSTOP_INVERTING
680 676
 
681 677
 /**
682 678
  * Stepper Drivers

+ 1
- 1
Marlin/src/module/probe.cpp Datei anzeigen

@@ -431,7 +431,7 @@ bool set_probe_deployed(const bool deploy) {
431 431
         BUZZ(100, 698);
432 432
 
433 433
         const char * const ds_str = deploy ? PSTR(MSG_MANUAL_DEPLOY) : PSTR(MSG_MANUAL_STOW);
434
-        lcd_setalertstatusPGM(ds_str);
434
+        lcd_setstatusPGM(ds_str);
435 435
         serialprintPGM(ds_str);
436 436
         SERIAL_EOL();
437 437
 

Laden…
Abbrechen
Speichern