Sfoglia il codice sorgente

Allow Z_STOP_PIN override on SKR 1.4 (#17063)

Scott Lahteine 4 anni fa
parent
commit
d4ac78535c
Nessun account collegato all'indirizzo email del committer
1 ha cambiato i file con 8 aggiunte e 2 eliminazioni
  1. 8
    2
      Marlin/src/pins/lpc1768/pins_BTT_SKR_V1_4.h

+ 8
- 2
Marlin/src/pins/lpc1768/pins_BTT_SKR_V1_4.h Vedi File

@@ -79,14 +79,20 @@
79 79
     #define Z_MIN_PIN      P1_00   // PWRDET
80 80
   #endif
81 81
 #else
82
-  #define Z_STOP_PIN       P1_27   // Z-STOP
82
+  #ifndef Z_STOP_PIN
83
+    #define Z_STOP_PIN     P1_27   // Z-STOP
84
+  #endif
83 85
 #endif
84 86
 
85 87
 //
86 88
 // Z Probe (when not Z_MIN_PIN)
87 89
 //
88 90
 #ifndef Z_MIN_PROBE_PIN
89
-  #define Z_MIN_PROBE_PIN  P0_10
91
+  #if Z_STOP_PIN != P1_27
92
+    #define Z_MIN_PROBE_PIN P1_27
93
+  #else
94
+    #define Z_MIN_PROBE_PIN P0_10
95
+  #endif
90 96
 #endif
91 97
 
92 98
 //

Loading…
Annulla
Salva