home.c: remove some redundant preprocessor stuff.

Binary size is exactly the same, to the optimizer apparently
manages to drop empty functions.
This commit is contained in:
Markus Hitter 2014-05-25 18:57:04 +02:00
parent dc84e4dfe0
commit d53407bdc3
1 changed files with 7 additions and 15 deletions

22
home.c
View File

@ -56,23 +56,15 @@
/// home all 3 axes /// home all 3 axes
void home() { void home() {
#if defined X_MIN_PIN
home_x_negative();
#elif defined X_MAX_PIN
home_x_positive();
#endif
#if defined Y_MIN_PIN home_x_negative();
home_y_negative(); home_x_positive();
#elif defined Y_MAX_PIN
home_y_positive();
#endif
#if defined Z_MIN_PIN home_y_negative();
home_z_negative(); home_y_positive();
#elif defined Z_MAX_PIN
home_z_positive(); home_z_negative();
#endif home_z_positive();
} }
/// find X MIN endstop /// find X MIN endstop