Quellcode durchsuchen

📌 Creality RAMPS optional SD_DETECT_PIN (#23740)

Co-authored-by: Scott Lahteine <thinkyhead@users.noreply.github.com>
ellensp vor 2 Jahren
Ursprung
Commit
a9682f2e97
Es ist kein Account mit der E-Mail-Adresse des Committers verbunden
1 geänderte Dateien mit 6 neuen und 1 gelöschten Zeilen
  1. 6
    1
      Marlin/src/pins/ramps/pins_RAMPS_CREALITY.h

+ 6
- 1
Marlin/src/pins/ramps/pins_RAMPS_CREALITY.h Datei anzeigen

@@ -39,7 +39,12 @@
39 39
 #endif
40 40
 
41 41
 #ifndef SD_DETECT_PIN
42
-  #define SD_DETECT_PIN                       49  // Always define onboard SD detect
42
+  #if SD_CONNECTION_IS(ONBOARD)
43
+    //#define HAS_ONBOARD_SD_DETECT               // If the SD_DETECT_PIN is wired up
44
+  #endif
45
+  #if ENABLED(HAS_ONBOARD_SD_DETECT) || !SD_CONNECTION_IS(ONBOARD)
46
+    #define SD_DETECT_PIN                     49
47
+  #endif
43 48
 #endif
44 49
 
45 50
 #ifndef PS_ON_PIN

Laden…
Abbrechen
Speichern