|
515 | 515 | #ifdef X_STOP_PIN
|
516 | 516 | #if X_HOME_TO_MIN
|
517 | 517 | #define X_MIN_PIN X_STOP_PIN
|
518 |
| - #else |
| 518 | + #elif X_HOME_TO_MAX |
519 | 519 | #define X_MAX_PIN X_STOP_PIN
|
520 | 520 | #endif
|
521 | 521 | #elif X_HOME_TO_MIN
|
522 | 522 | #define X_STOP_PIN X_MIN_PIN
|
523 |
| - #else |
| 523 | + #elif X_HOME_TO_MAX |
524 | 524 | #define X_STOP_PIN X_MAX_PIN
|
525 | 525 | #endif
|
526 | 526 | #if !defined(X2_STOP_PIN) && ENABLED(X_DUAL_ENDSTOPS) && PIN_EXISTS(X_STOP)
|
|
532 | 532 | #ifdef Y_STOP_PIN
|
533 | 533 | #if Y_HOME_TO_MIN
|
534 | 534 | #define Y_MIN_PIN Y_STOP_PIN
|
535 |
| - #else |
| 535 | + #elif Y_HOME_TO_MAX |
536 | 536 | #define Y_MAX_PIN Y_STOP_PIN
|
537 | 537 | #endif
|
538 | 538 | #elif Y_HOME_TO_MIN
|
539 | 539 | #define Y_STOP_PIN Y_MIN_PIN
|
540 |
| - #else |
| 540 | + #elif X_HOME_TO_MAX |
541 | 541 | #define Y_STOP_PIN Y_MAX_PIN
|
542 | 542 | #endif
|
543 | 543 | #if !defined(Y2_STOP_PIN) && ENABLED(Y_DUAL_ENDSTOPS) && PIN_EXISTS(Y_STOP)
|
|
549 | 549 | #ifdef Z_STOP_PIN
|
550 | 550 | #if Z_HOME_TO_MIN
|
551 | 551 | #define Z_MIN_PIN Z_STOP_PIN
|
552 |
| - #else |
| 552 | + #elif Z_HOME_TO_MAX |
553 | 553 | #define Z_MAX_PIN Z_STOP_PIN
|
554 | 554 | #endif
|
555 | 555 | #elif Z_HOME_TO_MIN
|
556 | 556 | #define Z_STOP_PIN Z_MIN_PIN
|
557 |
| - #else |
| 557 | + #elif Z_HOME_TO_MAX |
558 | 558 | #define Z_STOP_PIN Z_MAX_PIN
|
559 | 559 | #endif
|
560 | 560 | #if ENABLED(Z_MULTI_ENDSTOPS) && PIN_EXISTS(Z_STOP)
|
|
574 | 574 | #ifdef I_STOP_PIN
|
575 | 575 | #if I_HOME_TO_MIN
|
576 | 576 | #define I_MIN_PIN I_STOP_PIN
|
577 |
| - #else |
| 577 | + #elif I_HOME_TO_MAX |
578 | 578 | #define I_MAX_PIN I_STOP_PIN
|
579 | 579 | #endif
|
580 | 580 | #elif I_HOME_TO_MIN
|
581 | 581 | #define I_STOP_PIN I_MIN_PIN
|
582 |
| - #else |
| 582 | + #elif I_HOME_TO_MAX |
583 | 583 | #define I_STOP_PIN I_MAX_PIN
|
584 | 584 | #endif
|
585 | 585 | #endif
|
|
588 | 588 | #ifdef J_STOP_PIN
|
589 | 589 | #if J_HOME_TO_MIN
|
590 | 590 | #define J_MIN_PIN J_STOP_PIN
|
591 |
| - #else |
| 591 | + #elif J_HOME_TO_MAX |
592 | 592 | #define J_MAX_PIN J_STOP_PIN
|
593 | 593 | #endif
|
594 | 594 | #elif J_HOME_TO_MIN
|
595 | 595 | #define J_STOP_PIN J_MIN_PIN
|
596 |
| - #else |
| 596 | + #elif J_HOME_TO_MAX |
597 | 597 | #define J_STOP_PIN J_MAX_PIN
|
598 | 598 | #endif
|
599 | 599 | #endif
|
|
602 | 602 | #ifdef K_STOP_PIN
|
603 | 603 | #if K_HOME_TO_MIN
|
604 | 604 | #define K_MIN_PIN K_STOP_PIN
|
605 |
| - #else |
| 605 | + #elif K_HOME_TO_MAX |
606 | 606 | #define K_MAX_PIN K_STOP_PIN
|
607 | 607 | #endif
|
608 | 608 | #elif K_HOME_TO_MIN
|
609 | 609 | #define K_STOP_PIN K_MIN_PIN
|
610 |
| - #else |
| 610 | + #elif K_HOME_TO_MAX |
611 | 611 | #define K_STOP_PIN K_MAX_PIN
|
612 | 612 | #endif
|
613 | 613 | #endif
|
|
616 | 616 | #ifdef U_STOP_PIN
|
617 | 617 | #if U_HOME_TO_MIN
|
618 | 618 | #define U_MIN_PIN U_STOP_PIN
|
619 |
| - #else |
| 619 | + #elif U_HOME_TO_MAX |
620 | 620 | #define U_MAX_PIN U_STOP_PIN
|
621 | 621 | #endif
|
622 | 622 | #elif U_HOME_TO_MIN
|
623 | 623 | #define U_STOP_PIN U_MIN_PIN
|
624 |
| - #else |
| 624 | + #elif U_HOME_TO_MAX |
625 | 625 | #define U_STOP_PIN U_MAX_PIN
|
626 | 626 | #endif
|
627 | 627 | #endif
|
|
630 | 630 | #ifdef V_STOP_PIN
|
631 | 631 | #if V_HOME_TO_MIN
|
632 | 632 | #define V_MIN_PIN V_STOP_PIN
|
633 |
| - #else |
| 633 | + #elif V_HOME_TO_MAX |
634 | 634 | #define V_MAX_PIN V_STOP_PIN
|
635 | 635 | #endif
|
636 | 636 | #elif V_HOME_TO_MIN
|
637 | 637 | #define V_STOP_PIN V_MIN_PIN
|
638 |
| - #else |
| 638 | + #elif V_HOME_TO_MAX |
639 | 639 | #define V_STOP_PIN V_MAX_PIN
|
640 | 640 | #endif
|
641 | 641 | #endif
|
|
644 | 644 | #ifdef W_STOP_PIN
|
645 | 645 | #if W_HOME_TO_MIN
|
646 | 646 | #define W_MIN_PIN W_STOP_PIN
|
647 |
| - #else |
| 647 | + #elif W_HOME_TO_MAX |
648 | 648 | #define W_MAX_PIN W_STOP_PIN
|
649 | 649 | #endif
|
650 | 650 | #elif W_HOME_TO_MIN
|
651 | 651 | #define W_STOP_PIN W_MIN_PIN
|
652 |
| - #else |
| 652 | + #elif W_HOME_TO_MAX |
653 | 653 | #define W_STOP_PIN W_MAX_PIN
|
654 | 654 | #endif
|
655 | 655 | #endif
|
|
0 commit comments