Procházet zdrojové kódy

📌 Creality RAMPS optional SD_DETECT_PIN (#23740)

Co-authored-by: Scott Lahteine <thinkyhead@users.noreply.github.com>
ellensp před 2 roky
rodič
revize
a9682f2e97
No account linked to committer's email address
1 změnil soubory, kde provedl 6 přidání a 1 odebrání
  1. 6
    1
      Marlin/src/pins/ramps/pins_RAMPS_CREALITY.h

+ 6
- 1
Marlin/src/pins/ramps/pins_RAMPS_CREALITY.h Zobrazit soubor

39
 #endif
39
 #endif
40
 
40
 
41
 #ifndef SD_DETECT_PIN
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
 #endif
48
 #endif
44
 
49
 
45
 #ifndef PS_ON_PIN
50
 #ifndef PS_ON_PIN

Loading…
Zrušit
Uložit