From 932f1c109ead8e49bf97c47fa628bdfe96867aec Mon Sep 17 00:00:00 2001 From: Scott Lahteine Date: Thu, 23 Jul 2015 19:38:33 -0700 Subject: [PATCH] Move servos to the top in pins_MEGACONTROLLER.h --- Marlin/pins_MEGACONTROLLER.h | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/Marlin/pins_MEGACONTROLLER.h b/Marlin/pins_MEGACONTROLLER.h index 2bda001bd..ccca4d476 100644 --- a/Marlin/pins_MEGACONTROLLER.h +++ b/Marlin/pins_MEGACONTROLLER.h @@ -9,6 +9,20 @@ #if EXTRUDERS > 2 #error Mega Controller supports up to 2 extruders. Comment this line to keep going. #endif + +#ifdef NUM_SERVOS + #define SERVO0_PIN 30 + #if NUM_SERVOS > 1 + #define SERVO1_PIN 31 + #if NUM_SERVOS > 2 + #define SERVO2_PIN 32 + #if NUM_SERVOS > 3 + #define SERVO3_PIN 33 + #endif + #endif + #endif +#endif // NUM_SERVOS + #define X_STEP_PIN 62//A8 #define X_DIR_PIN 63//A9 #define X_ENABLE_PIN 61//A7 @@ -74,20 +88,6 @@ #define TEMP_BED_PIN 1 // ANALOG NUMBERING #endif -#ifdef NUM_SERVOS - #define SERVO0_PIN 30 - - #if NUM_SERVOS > 1 - #define SERVO1_PIN 31 - #if NUM_SERVOS > 2 - #define SERVO2_PIN 32 - #if NUM_SERVOS > 3 - #define SERVO3_PIN 33 - #endif - #endif - #endif -#endif// NUM_SERVOS - #ifdef MINIPANEL #define BEEPER 46 // Pins for DOGM SPI LCD Support