ellensp
il y a 2 ans
Parent
révision
a9682f2e97
Aucun compte lié à l'adresse e-mail de l'auteur
|
@@ -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
|