From 2e7c870e5ac15a2ec8445884d709bfa86607ae84 Mon Sep 17 00:00:00 2001 From: Msq001 Date: Wed, 14 Apr 2021 17:54:57 +0800 Subject: [PATCH] fix SanityCheck --- Marlin/src/inc/Conditionals_adv.h | 4 ---- Marlin/src/inc/Conditionals_post.h | 4 ++++ Marlin/src/inc/SanityCheck.h | 7 ------- 3 files changed, 4 insertions(+), 11 deletions(-) diff --git a/Marlin/src/inc/Conditionals_adv.h b/Marlin/src/inc/Conditionals_adv.h index d9444ab9a9df..735e6464d93f 100644 --- a/Marlin/src/inc/Conditionals_adv.h +++ b/Marlin/src/inc/Conditionals_adv.h @@ -540,7 +540,3 @@ #if EITHER(MEATPACK_ON_SERIAL_PORT_1, MEATPACK_ON_SERIAL_PORT_2) #define HAS_MEATPACK 1 #endif - -#if DISABLED(DISABLE_DRIVER_SAFE_POWER_PROTECT) && PIN_EXISTS(SAFE_POWER) - #define DRIVER_SAFE_POWER_PROTECT 1 -#endif diff --git a/Marlin/src/inc/Conditionals_post.h b/Marlin/src/inc/Conditionals_post.h index f00dd6ec97ad..95a6b446ed07 100644 --- a/Marlin/src/inc/Conditionals_post.h +++ b/Marlin/src/inc/Conditionals_post.h @@ -3026,3 +3026,7 @@ #if BUTTONS_EXIST(EN1, EN2, ENC) #define HAS_ROTARY_ENCODER 1 #endif + +#if DISABLED(DISABLE_DRIVER_SAFE_POWER_PROTECT) && PIN_EXISTS(SAFE_POWER) + #define DRIVER_SAFE_POWER_PROTECT 1 +#endif diff --git a/Marlin/src/inc/SanityCheck.h b/Marlin/src/inc/SanityCheck.h index fb214ebe005c..64fcc85aadc4 100644 --- a/Marlin/src/inc/SanityCheck.h +++ b/Marlin/src/inc/SanityCheck.h @@ -1628,13 +1628,6 @@ static_assert(hbm[Z_AXIS] >= 0, "HOMING_BUMP_MM.Z must be greater than or equal #error "POWER_MONITOR_CURRENT_PIN and POWER_MONITOR_VOLTAGE_PIN must be different." #endif -/** - * Stepper Driver Anti-Reverse Protection - */ -#if ENABLED(DRIVER_SAFE_POWER_PROTECT) && !PIN_EXISTS(SAFE_POWER) - #error "DRIVER_SAFE_POWER_PROTECT requires a valid SAFE_POWER_PIN." -#endif - /** * Volumetric Extruder Limit */