diff --git a/Marlin/Conditionals.h b/Marlin/Conditionals.h index 3598dab2da..c896f0f92f 100644 --- a/Marlin/Conditionals.h +++ b/Marlin/Conditionals.h @@ -513,7 +513,7 @@ #define HAS_BUZZER ((defined(BEEPER) && BEEPER >= 0) || defined(LCD_USE_I2C_BUZZER)) - #if defined( NUM_SERVOS ) && (NUM_SERVOS > 0) + #if defined(NUM_SERVOS) && NUM_SERVOS > 0 #ifndef X_ENDSTOP_SERVO_NR #define X_ENDSTOP_SERVO_NR -1 #endif @@ -523,8 +523,7 @@ #ifndef Z_ENDSTOP_SERVO_NR #define Z_ENDSTOP_SERVO_NR -1 #endif - #if (X_ENDSTOP_SERVO_NR >= 0) || (Y_ENDSTOP_SERVO_NR >= 0) || (Z_ENDSTOP_SERVO_NR >= 0) - #define SERVO_ENDSTOPS {X_ENDSTOP_SERVO_NR, Y_ENDSTOP_SERVO_NR, Z_ENDSTOP_SERVO_NR} + #if X_ENDSTOP_SERVO_NR >= 0 || Y_ENDSTOP_SERVO_NR >= 0 || Z_ENDSTOP_SERVO_NR >= 0 #define HAS_SERVO_ENDSTOPS true #define SERVO_ENDSTOP_IDS { X_ENDSTOP_SERVO_NR, Y_ENDSTOP_SERVO_NR, Z_ENDSTOP_SERVO_NR } #endif