|
@@ -401,10 +401,11 @@ ISR(TIMER1_COMPA_vect)
|
401
|
401
|
|
402
|
402
|
// Set direction en check limit switches
|
403
|
403
|
#ifndef COREXY
|
404
|
|
- if ((out_bits & (1<<X_AXIS)) != 0) { // stepping along -X axis
|
|
404
|
+ if ((out_bits & (1<<X_AXIS)) != 0) // stepping along -X axis
|
405
|
405
|
#else
|
406
|
|
- if ((((out_bits & (1<<X_AXIS)) != 0)&&(out_bits & (1<<Y_AXIS)) != 0)) { //-X occurs for -A and -B
|
|
406
|
+ if ((out_bits & (1<<X_HEAD)) != 0) //AlexBorro: Head direction in -X axis for CoreXY bots.
|
407
|
407
|
#endif
|
|
408
|
+ {
|
408
|
409
|
CHECK_ENDSTOPS
|
409
|
410
|
{
|
410
|
411
|
#ifdef DUAL_X_CARRIAGE
|
|
@@ -425,7 +426,8 @@ ISR(TIMER1_COMPA_vect)
|
425
|
426
|
}
|
426
|
427
|
}
|
427
|
428
|
}
|
428
|
|
- else { // +direction
|
|
429
|
+ else
|
|
430
|
+ { // +direction
|
429
|
431
|
CHECK_ENDSTOPS
|
430
|
432
|
{
|
431
|
433
|
#ifdef DUAL_X_CARRIAGE
|
|
@@ -448,10 +450,11 @@ ISR(TIMER1_COMPA_vect)
|
448
|
450
|
}
|
449
|
451
|
|
450
|
452
|
#ifndef COREXY
|
451
|
|
- if ((out_bits & (1<<Y_AXIS)) != 0) { // -direction
|
|
453
|
+ if ((out_bits & (1<<Y_AXIS)) != 0) // -direction
|
452
|
454
|
#else
|
453
|
|
- if ((((out_bits & (1<<X_AXIS)) != 0)&&(out_bits & (1<<Y_AXIS)) == 0)) { // -Y occurs for -A and +B
|
|
455
|
+ if ((out_bits & (1<<Y_HEAD)) != 0) //AlexBorro: Head direction in -Y axis for CoreXY bots.
|
454
|
456
|
#endif
|
|
457
|
+ {
|
455
|
458
|
CHECK_ENDSTOPS
|
456
|
459
|
{
|
457
|
460
|
#if defined(Y_MIN_PIN) && Y_MIN_PIN > -1
|
|
@@ -465,7 +468,8 @@ ISR(TIMER1_COMPA_vect)
|
465
|
468
|
#endif
|
466
|
469
|
}
|
467
|
470
|
}
|
468
|
|
- else { // +direction
|
|
471
|
+ else
|
|
472
|
+ { // +direction
|
469
|
473
|
CHECK_ENDSTOPS
|
470
|
474
|
{
|
471
|
475
|
#if defined(Y_MAX_PIN) && Y_MAX_PIN > -1
|