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:
parent
5b91ec41e3
commit
bc95da4259
2 changed files with 5 additions and 0 deletions
|
@ -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 {
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue