瀏覽代碼

📌 Creality RAMPS optional SD_DETECT_PIN (#23740)

Co-authored-by: Scott Lahteine <thinkyhead@users.noreply.github.com>
ellensp 2 年之前
父節點
當前提交
a9682f2e97
No account linked to committer's email address
共有 1 個文件被更改,包括 6 次插入1 次删除
  1. 6
    1
      Marlin/src/pins/ramps/pins_RAMPS_CREALITY.h

+ 6
- 1
Marlin/src/pins/ramps/pins_RAMPS_CREALITY.h 查看文件

@@ -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

Loading…
取消
儲存