|
@@ -459,7 +459,7 @@ ISR(TIMER1_COMPA_vect) {
|
459
|
459
|
#ifdef COREXY
|
460
|
460
|
// Head direction in -X axis for CoreXY bots.
|
461
|
461
|
// If DeltaX == -DeltaY, the movement is only in Y axis
|
462
|
|
- if (current_block->steps[A_AXIS] != current_block->steps[B_AXIS] || (TEST(out_bits, A_AXIS) == TEST(out_bits, B_AXIS)))
|
|
462
|
+ if ((current_block->steps[A_AXIS] != current_block->steps[B_AXIS]) || (TEST(out_bits, A_AXIS) == TEST(out_bits, B_AXIS))) {
|
463
|
463
|
if (TEST(out_bits, X_HEAD))
|
464
|
464
|
#else
|
465
|
465
|
if (TEST(out_bits, X_AXIS)) // stepping along -X axis (regular cartesians bot)
|
|
@@ -487,9 +487,10 @@ ISR(TIMER1_COMPA_vect) {
|
487
|
487
|
}
|
488
|
488
|
}
|
489
|
489
|
#ifdef COREXY
|
|
490
|
+ }
|
490
|
491
|
// Head direction in -Y axis for CoreXY bots.
|
491
|
492
|
// If DeltaX == DeltaY, the movement is only in X axis
|
492
|
|
- if (current_block->steps[A_AXIS] != current_block->steps[B_AXIS] || (TEST(out_bits, A_AXIS) != TEST(out_bits, B_AXIS)))
|
|
493
|
+ if ((current_block->steps[A_AXIS] != current_block->steps[B_AXIS]) || (TEST(out_bits, A_AXIS) != TEST(out_bits, B_AXIS))) {
|
493
|
494
|
if (TEST(out_bits, Y_HEAD))
|
494
|
495
|
#else
|
495
|
496
|
if (TEST(out_bits, Y_AXIS)) // -direction
|
|
@@ -504,6 +505,9 @@ ISR(TIMER1_COMPA_vect) {
|
504
|
505
|
UPDATE_ENDSTOP(y, Y, max, MAX);
|
505
|
506
|
#endif
|
506
|
507
|
}
|
|
508
|
+ #ifdef COREXY
|
|
509
|
+ }
|
|
510
|
+ #endif
|
507
|
511
|
}
|
508
|
512
|
|
509
|
513
|
if (TEST(out_bits, Z_AXIS)) { // -direction
|