summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--firmware/target/arm/as3525/sd-as3525v2.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/firmware/target/arm/as3525/sd-as3525v2.c b/firmware/target/arm/as3525/sd-as3525v2.c
index 44ac731133..9dd1d7e7e6 100644
--- a/firmware/target/arm/as3525/sd-as3525v2.c
+++ b/firmware/target/arm/as3525/sd-as3525v2.c
@@ -364,8 +364,14 @@ void INT_NAND(void)
static inline bool card_detect_target(void)
{
#if defined(HAVE_MULTIDRIVE)
+#if defined(SANSA_FUZEV2)
+ return GPIOA_PIN(2);
+#elif defined(SANSA_CLIPPLUS)
return !(GPIOA_PIN(2));
#else
+#error "microSD pin not defined for your target"
+#endif
+#else
return false;
#endif
}