Skip to content

Commit b27447e

Browse files
ellenspthinkyhead
authored andcommitted
🔧 Enforce BLTouch settings (MarlinFirmware#22086)
1 parent c9a3ba9 commit b27447e

File tree

2 files changed

+6
-9
lines changed

2 files changed

+6
-9
lines changed

Marlin/src/inc/Conditionals_LCD.h

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -718,22 +718,17 @@
718718
#define Z_PROBE_SERVO_NR 0
719719
#endif
720720
#ifdef DEACTIVATE_SERVOS_AFTER_MOVE
721-
#warning "BLTOUCH requires DEACTIVATE_SERVOS_AFTER_MOVE to be to disabled. Undefining DEACTIVATE_SERVOS_AFTER_MOVE. Please update your Configuration.h file."
722-
#undef DEACTIVATE_SERVOS_AFTER_MOVE
721+
#error "BLTOUCH requires DEACTIVATE_SERVOS_AFTER_MOVE to be to disabled. Please update your Configuration.h file."
723722
#endif
724723

725724
// Always disable probe pin inverting for BLTouch
726725
#if Z_MIN_PROBE_ENDSTOP_INVERTING
727-
#warning "BLTOUCH requires Z_MIN_PROBE_ENDSTOP_INVERTING set to false. Resetting Z_MIN_PROBE_ENDSTOP_INVERTING to false. Please update your Configuration.h file."
728-
#undef Z_MIN_PROBE_ENDSTOP_INVERTING
729-
#define Z_MIN_PROBE_ENDSTOP_INVERTING false
726+
#error "BLTOUCH requires Z_MIN_PROBE_ENDSTOP_INVERTING set to false. Please update your Configuration.h file."
730727
#endif
731728

732729
#if ENABLED(Z_MIN_PROBE_USES_Z_MIN_ENDSTOP_PIN)
733730
#if Z_MIN_ENDSTOP_INVERTING
734-
#warning "BLTOUCH requires Z_MIN_ENDSTOP_INVERTING set to false. Resetting Z_MIN_ENDSTOP_INVERTING to false. Please update your Configuration.h file."
735-
#undef Z_MIN_ENDSTOP_INVERTING
736-
#define Z_MIN_ENDSTOP_INVERTING false
731+
#error "BLTOUCH requires Z_MIN_ENDSTOP_INVERTING set to false. Please update your Configuration.h file."
737732
#endif
738733
#endif
739734
#endif

buildroot/tests/mega1280

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,9 @@ exec_test $1 $2 "RAMPS | DELTA | RRD LCD | DELTA_AUTO_CALIBRATION | DELTA_CALIBR
4747
#
4848
# Delta Config (generic) + ABL bilinear + BLTOUCH
4949
use_example_configs delta/generic
50-
opt_set LCD_LANGUAGE cz
50+
opt_set LCD_LANGUAGE cz \
51+
Z_MIN_PROBE_ENDSTOP_INVERTING false \
52+
Z_MIN_ENDSTOP_INVERTING false
5153
opt_enable REPRAP_DISCOUNT_SMART_CONTROLLER DELTA_CALIBRATION_MENU AUTO_BED_LEVELING_BILINEAR BLTOUCH
5254
exec_test $1 $2 "DELTA | RRD LCD | ABL Bilinear | BLTOUCH" "$3"
5355

0 commit comments

Comments
 (0)