From a20d0794e6eb3737c5f6736620266f87d4585224 Mon Sep 17 00:00:00 2001 From: Thomas Moore Date: Mon, 8 May 2017 16:28:44 +0000 Subject: [PATCH] Automatically define Z_MIN_PROBE_ENDSTOP_INVERTING for BLTouch --- Marlin/Conditionals_LCD.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Marlin/Conditionals_LCD.h b/Marlin/Conditionals_LCD.h index 5761390451..453468953f 100644 --- a/Marlin/Conditionals_LCD.h +++ b/Marlin/Conditionals_LCD.h @@ -360,8 +360,12 @@ #if ENABLED(Z_MIN_PROBE_USES_Z_MIN_ENDSTOP_PIN) #undef Z_MIN_ENDSTOP_INVERTING #define Z_MIN_ENDSTOP_INVERTING false + #undef Z_MIN_PROBE_ENDSTOP_INVERTING + #define Z_MIN_PROBE_ENDSTOP_INVERTING false #define TEST_BLTOUCH() _TEST_BLTOUCH(Z_MIN) #else + #undef Z_MIN_PROBE_ENDSTOP_INVERTING + #define Z_MIN_PROBE_ENDSTOP_INVERTING false #define TEST_BLTOUCH() _TEST_BLTOUCH(Z_MIN_PROBE) #endif #endif