Procházet zdrojové kódy

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

Hannes Brandstätter-Müller před 6 roky
rodič
revize
0b602ae101

+ 2
- 6
Marlin/src/config/examples/delta/Anycubic/Kossel/Configuration.h Zobrazit soubor

668
 // Mechanical endstop with COM to ground and NC to Signal uses "false" here (most common setup).
668
 // Mechanical endstop with COM to ground and NC to Signal uses "false" here (most common setup).
669
 #define X_MIN_ENDSTOP_INVERTING false  // set to true to invert the logic of the endstop.
669
 #define X_MIN_ENDSTOP_INVERTING false  // set to true to invert the logic of the endstop.
670
 #define Y_MIN_ENDSTOP_INVERTING false  // set to true to invert the logic of the endstop.
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
 #define X_MAX_ENDSTOP_INVERTING false  // set to true to invert the logic of the endstop.
672
 #define X_MAX_ENDSTOP_INVERTING false  // set to true to invert the logic of the endstop.
673
 #define Y_MAX_ENDSTOP_INVERTING false  // set to true to invert the logic of the endstop.
673
 #define Y_MAX_ENDSTOP_INVERTING false  // set to true to invert the logic of the endstop.
674
 #define Z_MAX_ENDSTOP_INVERTING false  // set to true to invert the logic of the endstop.
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
  * Stepper Drivers
678
  * Stepper Drivers

+ 1
- 1
Marlin/src/module/probe.cpp Zobrazit soubor

431
         BUZZ(100, 698);
431
         BUZZ(100, 698);
432
 
432
 
433
         const char * const ds_str = deploy ? PSTR(MSG_MANUAL_DEPLOY) : PSTR(MSG_MANUAL_STOW);
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
         serialprintPGM(ds_str);
435
         serialprintPGM(ds_str);
436
         SERIAL_EOL();
436
         SERIAL_EOL();
437
 
437
 

Loading…
Zrušit
Uložit