From 823323cc3fd2a7f7d437b356ce047ea9dfd83586 Mon Sep 17 00:00:00 2001 From: Scott Lahteine Date: Tue, 4 May 2021 19:02:45 -0500 Subject: [PATCH] match pattern --- Marlin/src/pins/sensitive_pins.h | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/Marlin/src/pins/sensitive_pins.h b/Marlin/src/pins/sensitive_pins.h index 8294292bf805..1c811601ca7b 100644 --- a/Marlin/src/pins/sensitive_pins.h +++ b/Marlin/src/pins/sensitive_pins.h @@ -55,10 +55,10 @@ #else #define _X_MS3 #endif -#if AXIS_HAS_UART(X) && defined SOFTWARE_DRIVER_ENABLE - #define _X_ENABLE_PIN -#else +#if PIN_EXISTS(X_ENABLE) #define _X_ENABLE_PIN X_ENABLE_PIN, +#else + #define _X_ENABLE_PIN #endif #define _X_PINS X_STEP_PIN, X_DIR_PIN, _X_ENABLE_PIN _X_MIN _X_MAX _X_MS1 _X_MS2 _X_MS3 _X_CS @@ -93,10 +93,10 @@ #else #define _Y_MS3 #endif -#if AXIS_HAS_UART(Y) && defined SOFTWARE_DRIVER_ENABLE - #define _Y_ENABLE_PIN -#else +#if PIN_EXISTS(Y_ENABLE) #define _Y_ENABLE_PIN Y_ENABLE_PIN, +#else + #define _Y_ENABLE_PIN #endif #define _Y_PINS Y_STEP_PIN, Y_DIR_PIN, _Y_ENABLE_PIN _Y_MIN _Y_MAX _Y_MS1 _Y_MS2 _Y_MS3 _Y_CS @@ -131,10 +131,10 @@ #else #define _Z_MS3 #endif -#if AXIS_HAS_UART(Z) && defined SOFTWARE_DRIVER_ENABLE - #define _Z_ENABLE_PIN -#else +#if PIN_EXISTS(Z_ENABLE) #define _Z_ENABLE_PIN Z_ENABLE_PIN, +#else + #define _Z_ENABLE_PIN #endif #define _Z_PINS Z_STEP_PIN, Z_DIR_PIN, _Z_ENABLE_PIN _Z_MIN _Z_MAX _Z_MS1 _Z_MS2 _Z_MS3 _Z_CS