Browse Source

Fix SKR 1.4 Turbo SD_DETECT_PIN (#16955)

InsanityAutomation 4 years ago
parent
commit
6bfae5de6f
No account linked to committer's email address
1 changed files with 9 additions and 6 deletions
  1. 9
    6
      Marlin/src/pins/lpc1768/pins_BTT_SKR_V1_4.h

+ 9
- 6
Marlin/src/pins/lpc1768/pins_BTT_SKR_V1_4.h View File

151
 #define TEMP_BED_PIN       P0_25_A2   // A0 (T0) - (67) - TEMP_BED_PIN
151
 #define TEMP_BED_PIN       P0_25_A2   // A0 (T0) - (67) - TEMP_BED_PIN
152
 
152
 
153
 //
153
 //
154
-// Include common SKR pins
155
-//
156
-#include "pins_BTT_SKR_common.h"
157
-
158
-//
159
 // Software SPI pins for TMC2130 stepper drivers
154
 // Software SPI pins for TMC2130 stepper drivers
160
 //
155
 //
161
 #if ENABLED(TMC_USE_SW_SPI)
156
 #if ENABLED(TMC_USE_SW_SPI)
264
     #define LCD_PINS_D4    P1_20
259
     #define LCD_PINS_D4    P1_20
265
 
260
 
266
     #define LCD_SDSS       P0_16   // (16) J3-7 & AUX-4
261
     #define LCD_SDSS       P0_16   // (16) J3-7 & AUX-4
267
-    #define SD_DETECT_PIN  P1_31   // (49) (NOT 5V tolerant)
262
+
263
+    #if SD_CONNECTION_IS(LCD)
264
+      #define SD_DETECT_PIN P1_31  // (49) (NOT 5V tolerant)
265
+    #endif
268
 
266
 
269
     #if ENABLED(FYSETC_MINI_12864)
267
     #if ENABLED(FYSETC_MINI_12864)
270
       #define DOGLCD_CS    P1_18
268
       #define DOGLCD_CS    P1_18
329
  *   P0_27  (57) (Open collector)
327
  *   P0_27  (57) (Open collector)
330
  *   P0_28  (58) (Open collector)
328
  *   P0_28  (58) (Open collector)
331
  */
329
  */
330
+
331
+//
332
+// Include common SKR pins
333
+//
334
+#include "pins_BTT_SKR_common.h"

Loading…
Cancel
Save