Permalink
Browse files

Move single-switch defines to single-switch only code

  • Loading branch information...
1 parent f0736f7 commit 31cfc89dcd4e46931d338482e735c56ffb387008 @phooky phooky committed Oct 3, 2011
Showing with 9 additions and 7 deletions.
  1. +9 −7 v2/src/shared/StepperAxis.hh
@@ -4,13 +4,7 @@
#include "StepperInterface.hh"
#include "Configuration.hh"
-// If we started with an endstop triggered, then we don't know where we are
-// So we can go this many steps either way until we find out...
-// TODO: These should be in EEPROM, most likely, and per-axis
-#define ENDSTOP_DEFAULT_PLAY 10000
-#define ENDSTOP_DEBOUNCE 20
-
-/// The stepper axis module implmeents a driver for a single stepper axis. It is designed
+/// The stepper axis module implements a driver for a single stepper axis. It is designed
/// to be accessed via the Steppers namespace, and uses a StepperInterface to talk to the
/// actual hardware.
/// \ingroup SoftwareLibraries
@@ -81,4 +75,12 @@ public:
bool doHoming(const int32_t intervals);
};
+
+#if defined(SINGLE_SWITCH_ENDSTOPS) && (SINGLE_SWITCH_ENDSTOPS == 1)
+// If we started with an endstop triggered, then we don't know where we are
+// So we can go this many steps either way until we find out...
+#define ENDSTOP_DEFAULT_PLAY 10000
+#define ENDSTOP_DEBOUNCE 20
+#endif
+
#endif // STEPPERAXIS_HH

0 comments on commit 31cfc89

Please sign in to comment.