1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-17 21:35:44 +03:00

Fixes SD_DET for SDIO

This commit is contained in:
Chris 2018-10-02 21:56:16 +02:00
parent 5b91ec41e3
commit bc95da4259
2 changed files with 5 additions and 0 deletions

View file

@ -204,6 +204,9 @@ void sdcard_init(const sdcardConfig_t *config)
} else {
sdcard.cardDetectPin = IO_NONE;
}
if (config->cardDetectInverted) {
sdcard.detectionInverted = 1;
}
if (sdioConfig()->useCache) {
sdcard.useCache = 1;
} else {

View file

@ -3818,6 +3818,8 @@ const cliResourceValue_t resourceTable[] = {
#endif
#ifdef USE_SDCARD_SPI
DEFS( OWNER_SDCARD_CS, PG_SDCARD_CONFIG, sdcardConfig_t, chipSelectTag ),
#endif
#ifdef USE_SDCARD
DEFS( OWNER_SDCARD_DETECT, PG_SDCARD_CONFIG, sdcardConfig_t, cardDetectTag ),
#endif
#ifdef USE_PINIO