mirror of
https://github.com/MarlinFirmware/Marlin.git
synced 2025-01-18 07:29:33 +00:00
Followup to _AXIS patch
This commit is contained in:
parent
7c6dd087c9
commit
b7706ca8d0
1 changed files with 6 additions and 6 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue