Followup to _AXIS patch

This commit is contained in:
Scott Lahteine 2018-05-13 10:42:00 -05:00
parent 7c6dd087c9
commit b7706ca8d0

View File

@ -334,14 +334,14 @@ void Stepper::wake_up() {
*/
void Stepper::set_directions() {
#define SET_STEP_DIR(AXIS) \
if (motor_direction(_AXIS(AXIS))) { \
AXIS ##_APPLY_DIR(INVERT_## AXIS ##_DIR, false); \
count_direction[_AXIS(AXIS)] = -1; \
#define SET_STEP_DIR(A) \
if (motor_direction(_AXIS(A))) { \
A##_APPLY_DIR(INVERT_## A##_DIR, false); \
count_direction[_AXIS(A)] = -1; \
} \
else { \
AXIS ##_APPLY_DIR(!INVERT_## AXIS ##_DIR, false); \
count_direction[_AXIS(AXIS)] = 1; \
A##_APPLY_DIR(!INVERT_## A##_DIR, false); \
count_direction[_AXIS(A)] = 1; \
}
#if HAS_X_DIR