Skip to content

Commit 5ed6bf6

Browse files
🔧 Allow for no STOP pin
Co-Authored-By: DerAndere <[email protected]>
1 parent d79bcef commit 5ed6bf6

File tree

1 file changed

+18
-18
lines changed

1 file changed

+18
-18
lines changed

Marlin/src/pins/pins_postprocess.h

+18-18
Original file line numberDiff line numberDiff line change
@@ -515,12 +515,12 @@
515515
#ifdef X_STOP_PIN
516516
#if X_HOME_TO_MIN
517517
#define X_MIN_PIN X_STOP_PIN
518-
#else
518+
#elif X_HOME_TO_MAX
519519
#define X_MAX_PIN X_STOP_PIN
520520
#endif
521521
#elif X_HOME_TO_MIN
522522
#define X_STOP_PIN X_MIN_PIN
523-
#else
523+
#elif X_HOME_TO_MAX
524524
#define X_STOP_PIN X_MAX_PIN
525525
#endif
526526
#if !defined(X2_STOP_PIN) && ENABLED(X_DUAL_ENDSTOPS) && PIN_EXISTS(X_STOP)
@@ -532,12 +532,12 @@
532532
#ifdef Y_STOP_PIN
533533
#if Y_HOME_TO_MIN
534534
#define Y_MIN_PIN Y_STOP_PIN
535-
#else
535+
#elif Y_HOME_TO_MAX
536536
#define Y_MAX_PIN Y_STOP_PIN
537537
#endif
538538
#elif Y_HOME_TO_MIN
539539
#define Y_STOP_PIN Y_MIN_PIN
540-
#else
540+
#elif X_HOME_TO_MAX
541541
#define Y_STOP_PIN Y_MAX_PIN
542542
#endif
543543
#if !defined(Y2_STOP_PIN) && ENABLED(Y_DUAL_ENDSTOPS) && PIN_EXISTS(Y_STOP)
@@ -549,12 +549,12 @@
549549
#ifdef Z_STOP_PIN
550550
#if Z_HOME_TO_MIN
551551
#define Z_MIN_PIN Z_STOP_PIN
552-
#else
552+
#elif Z_HOME_TO_MAX
553553
#define Z_MAX_PIN Z_STOP_PIN
554554
#endif
555555
#elif Z_HOME_TO_MIN
556556
#define Z_STOP_PIN Z_MIN_PIN
557-
#else
557+
#elif Z_HOME_TO_MAX
558558
#define Z_STOP_PIN Z_MAX_PIN
559559
#endif
560560
#if ENABLED(Z_MULTI_ENDSTOPS) && PIN_EXISTS(Z_STOP)
@@ -574,12 +574,12 @@
574574
#ifdef I_STOP_PIN
575575
#if I_HOME_TO_MIN
576576
#define I_MIN_PIN I_STOP_PIN
577-
#else
577+
#elif I_HOME_TO_MAX
578578
#define I_MAX_PIN I_STOP_PIN
579579
#endif
580580
#elif I_HOME_TO_MIN
581581
#define I_STOP_PIN I_MIN_PIN
582-
#else
582+
#elif I_HOME_TO_MAX
583583
#define I_STOP_PIN I_MAX_PIN
584584
#endif
585585
#endif
@@ -588,12 +588,12 @@
588588
#ifdef J_STOP_PIN
589589
#if J_HOME_TO_MIN
590590
#define J_MIN_PIN J_STOP_PIN
591-
#else
591+
#elif J_HOME_TO_MAX
592592
#define J_MAX_PIN J_STOP_PIN
593593
#endif
594594
#elif J_HOME_TO_MIN
595595
#define J_STOP_PIN J_MIN_PIN
596-
#else
596+
#elif J_HOME_TO_MAX
597597
#define J_STOP_PIN J_MAX_PIN
598598
#endif
599599
#endif
@@ -602,12 +602,12 @@
602602
#ifdef K_STOP_PIN
603603
#if K_HOME_TO_MIN
604604
#define K_MIN_PIN K_STOP_PIN
605-
#else
605+
#elif K_HOME_TO_MAX
606606
#define K_MAX_PIN K_STOP_PIN
607607
#endif
608608
#elif K_HOME_TO_MIN
609609
#define K_STOP_PIN K_MIN_PIN
610-
#else
610+
#elif K_HOME_TO_MAX
611611
#define K_STOP_PIN K_MAX_PIN
612612
#endif
613613
#endif
@@ -616,12 +616,12 @@
616616
#ifdef U_STOP_PIN
617617
#if U_HOME_TO_MIN
618618
#define U_MIN_PIN U_STOP_PIN
619-
#else
619+
#elif U_HOME_TO_MAX
620620
#define U_MAX_PIN U_STOP_PIN
621621
#endif
622622
#elif U_HOME_TO_MIN
623623
#define U_STOP_PIN U_MIN_PIN
624-
#else
624+
#elif U_HOME_TO_MAX
625625
#define U_STOP_PIN U_MAX_PIN
626626
#endif
627627
#endif
@@ -630,12 +630,12 @@
630630
#ifdef V_STOP_PIN
631631
#if V_HOME_TO_MIN
632632
#define V_MIN_PIN V_STOP_PIN
633-
#else
633+
#elif V_HOME_TO_MAX
634634
#define V_MAX_PIN V_STOP_PIN
635635
#endif
636636
#elif V_HOME_TO_MIN
637637
#define V_STOP_PIN V_MIN_PIN
638-
#else
638+
#elif V_HOME_TO_MAX
639639
#define V_STOP_PIN V_MAX_PIN
640640
#endif
641641
#endif
@@ -644,12 +644,12 @@
644644
#ifdef W_STOP_PIN
645645
#if W_HOME_TO_MIN
646646
#define W_MIN_PIN W_STOP_PIN
647-
#else
647+
#elif W_HOME_TO_MAX
648648
#define W_MAX_PIN W_STOP_PIN
649649
#endif
650650
#elif W_HOME_TO_MIN
651651
#define W_STOP_PIN W_MIN_PIN
652-
#else
652+
#elif W_HOME_TO_MAX
653653
#define W_STOP_PIN W_MAX_PIN
654654
#endif
655655
#endif

0 commit comments

Comments
 (0)