Made #ifdef DELTA branch instead

Another fellow here gave me the idea to do it this way
This commit is contained in:
Natealus 2015-03-29 01:08:00 -06:00
parent 04fda6b3e9
commit ca5821aa57

View File

@ -16,23 +16,23 @@
//
//This section is to swap the MIN and MAX pins because the X3 Pro comes with only
//MIN endstops soldered onto the board. Delta code wants the homing endstops to be
//the MAX so I swapped them here. Comment them out with // if you want them original.
//Note: I had to solder on the additional MAX Endstop pins to attach a Z-Probe
//endstop switch.
//the MAX so I swapped them here.
//
//#undef X_MIN_PIN
//#undef X_MAX_PIN
//#undef Y_MIN_PIN
//#undef Y_MAX_PIN
//#undef Z_MIN_PIN
//#undef Z_MAX_PIN
#ifdef DELTA
#undef X_MIN_PIN
#undef X_MAX_PIN
#undef Y_MIN_PIN
#undef Y_MAX_PIN
#undef Z_MIN_PIN
#undef Z_MAX_PIN
//#define X_MIN_PIN 2
//#define X_MAX_PIN 3
//#define Y_MIN_PIN 15
//#define Y_MAX_PIN 14
//#define Z_MIN_PIN 19
//#define Z_MAX_PIN 18
#define X_MIN_PIN 2
#define X_MAX_PIN 3
#define Y_MIN_PIN 15
#define Y_MAX_PIN 14
#define Z_MIN_PIN 19
#define Z_MAX_PIN 18
#endif
//
#define E2_STEP_PIN 23