diff options
Diffstat (limited to 'firmware/target/arm/tcc780x')
-rw-r--r-- | firmware/target/arm/tcc780x/sd-tcc780x.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/firmware/target/arm/tcc780x/sd-tcc780x.c b/firmware/target/arm/tcc780x/sd-tcc780x.c index 222bb88a15..25876aa7ba 100644 --- a/firmware/target/arm/tcc780x/sd-tcc780x.c +++ b/firmware/target/arm/tcc780x/sd-tcc780x.c | |||
@@ -205,9 +205,13 @@ static void sd_card_mux(int card_no) | |||
205 | 205 | ||
206 | #ifdef HAVE_HOTSWAP | 206 | #ifdef HAVE_HOTSWAP |
207 | 207 | ||
208 | bool card_detect_target(void) | 208 | static inline bool card_detect_target(void) |
209 | { | 209 | { |
210 | #ifdef HAVE_HOTSWAP | ||
210 | return (GPIOB & (1<<26)) == 0; /* low active */ | 211 | return (GPIOB & (1<<26)) == 0; /* low active */ |
212 | #else | ||
213 | return false; | ||
214 | #endif | ||
211 | } | 215 | } |
212 | 216 | ||
213 | void card_enable_monitoring_target(bool on) | 217 | void card_enable_monitoring_target(bool on) |
@@ -261,11 +265,6 @@ bool sd_present(IF_MD_NONVOID(int card_no)) | |||
261 | 265 | ||
262 | #else | 266 | #else |
263 | 267 | ||
264 | bool card_detect_target(void) | ||
265 | { | ||
266 | return false; | ||
267 | } | ||
268 | |||
269 | bool sd_removable(IF_MD_NONVOID(int card_no)) | 268 | bool sd_removable(IF_MD_NONVOID(int card_no)) |
270 | { | 269 | { |
271 | #ifndef HAVE_MULTIDRIVE | 270 | #ifndef HAVE_MULTIDRIVE |