diff --git a/Marlin/pins.h b/Marlin/pins.h index 36f6703743..1511a4cdd4 100644 --- a/Marlin/pins.h +++ b/Marlin/pins.h @@ -375,10 +375,18 @@ #define HEATER_BED_PIN 8 // BED #define TEMP_BED_PIN 14 // ANALOG NUMBERING -#define SERVO0_PIN 11 -#define SERVO1_PIN 6 -#define SERVO2_PIN 5 -#define SERVO3_PIN 4 +#ifdef NUM_SERVOS + #define SERVO0_PIN 11 + #if NUM_SERVOS > 1 + #define SERVO1_PIN 6 + #endif + #if NUM_SERVOS > 2 + #define SERVO2_PIN 5 + #endif + #if NUM_SERVOS > 2 + #define SERVO3_PIN 4 + #endif +#endif #ifdef ULTRA_LCD