mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-25 17:25:20 +03:00
Fix use of sdcard.cardDetectPin before it is initialised.
* de-duplicate some SDIO/SPI sd-card detection code. * ensure detectionInverted is set to false for SDIO case where `cardDetectTag` is not configured.
This commit is contained in:
parent
7471ada0c1
commit
8d78e15a4b
6 changed files with 12 additions and 20 deletions
|
@ -107,7 +107,7 @@ extern sdcard_t sdcard;
|
|||
|
||||
STATIC_ASSERT(sizeof(sdcardCSD_t) == 16, sdcard_csd_bitfields_didnt_pack_properly);
|
||||
|
||||
void sdcardInsertionDetectInit(void);
|
||||
void sdcardInsertionDetectInit(const sdcardConfig_t *config);
|
||||
void sdcardInsertionDetectDeinit(void);
|
||||
bool sdcard_isInserted(void);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue