Commit 07850b6f authored by MagoKimbra's avatar MagoKimbra

Merge remote-tracking branch 'refs/remotes/origin/master' into dev

parents ff830865 b5837b4d
...@@ -408,7 +408,7 @@ inline void update_endstops() { ...@@ -408,7 +408,7 @@ inline void update_endstops() {
#if MECH(COREXY) || MECH(COREYX)|| MECH(COREXZ) || MECH(COREZX) #if MECH(COREXY) || MECH(COREYX)|| MECH(COREXZ) || MECH(COREZX)
// Head direction in -X axis for CoreXY and CoreXZ bots. // Head direction in -X axis for CoreXY and CoreXZ bots.
// If Delta1 == -Delta2, the movement is only in Y or Z axis // If Delta1 == -Delta2, the movement is only in Y or Z axis
if ((current_block->steps[A_AXIS] != current_block->steps[CORE_AXIS_2]) || (TEST(out_bits, A_AXIS) == TEST(out_bits, CORE_AXIS_2))) { if ((current_block->steps[A_AXIS] != current_block->steps[CORE_AXIS_2]) || motor_direction(A_AXIS) == motor_direction(CORE_AXIS_2)) {
if (motor_direction(X_HEAD)) if (motor_direction(X_HEAD))
#else #else
if (motor_direction(X_AXIS)) // stepping along -X axis (regular Cartesian bot) if (motor_direction(X_AXIS)) // stepping along -X axis (regular Cartesian bot)
...@@ -442,7 +442,7 @@ inline void update_endstops() { ...@@ -442,7 +442,7 @@ inline void update_endstops() {
#if MECH(COREXY) || MECH(COREYX) #if MECH(COREXY) || MECH(COREYX)
// Head direction in -Y axis for CoreXY bots. // Head direction in -Y axis for CoreXY bots.
// If DeltaX == DeltaY, the movement is only in X axis // If DeltaX == DeltaY, the movement is only in X axis
if ((current_block->steps[A_AXIS] != current_block->steps[B_AXIS]) || (TEST(out_bits, A_AXIS) != TEST(out_bits, B_AXIS))) { if ((current_block->steps[A_AXIS] != current_block->steps[B_AXIS]) || motor_direction(A_AXIS) != motor_direction(B_AXIS)) {
if (motor_direction(Y_HEAD)) if (motor_direction(Y_HEAD))
#else #else
if (motor_direction(Y_AXIS)) // -direction if (motor_direction(Y_AXIS)) // -direction
...@@ -464,7 +464,7 @@ inline void update_endstops() { ...@@ -464,7 +464,7 @@ inline void update_endstops() {
#if MECH(COREXZ) || MECH(COREZX) #if MECH(COREXZ) || MECH(COREZX)
// Head direction in -Z axis for CoreXZ bots. // Head direction in -Z axis for CoreXZ bots.
// If DeltaX == DeltaZ, the movement is only in X axis // If DeltaX == DeltaZ, the movement is only in X axis
if ((current_block->steps[A_AXIS] != current_block->steps[C_AXIS]) || (TEST(out_bits, A_AXIS) != TEST(out_bits, C_AXIS))) { if ((current_block->steps[A_AXIS] != current_block->steps[C_AXIS]) || motor_direction(A_AXIS) != motor_direction(C_AXIS)) {
if (motor_direction(Z_HEAD)) if (motor_direction(Z_HEAD))
#else #else
if (motor_direction(Z_AXIS)) if (motor_direction(Z_AXIS))
...@@ -1264,7 +1264,7 @@ void st_init() { ...@@ -1264,7 +1264,7 @@ void st_init() {
enable_endstops(true); // Start with endstops active. After homing they can be disabled enable_endstops(true); // Start with endstops active. After homing they can be disabled
sei(); sei();
set_stepper_direction(); // Init directions to out_bits = 0 set_stepper_direction(); // Init directions to last_direction_bits = 0
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment