Merge pull request #3748 from martinbudden/bf_sdcard_dma

Change SD card use DMA default to false
This commit is contained in:
J Blackman 2017-08-09 17:41:10 +10:00 committed by GitHub
commit ac2026be6f
1 changed files with 3 additions and 7 deletions

View File

@ -184,15 +184,11 @@ void pgResetFn_flashConfig(flashConfig_t *flashConfig)
#ifdef USE_SDCARD
PG_REGISTER_WITH_RESET_TEMPLATE(sdcardConfig_t, sdcardConfig, PG_SDCARD_CONFIG, 0);
#if defined(SDCARD_DMA_CHANNEL_TX)
#define SDCARD_CONFIG_USE_DMA true
#else
#define SDCARD_CONFIG_USE_DMA false
#endif
PG_RESET_TEMPLATE(sdcardConfig_t, sdcardConfig,
.useDma = SDCARD_CONFIG_USE_DMA
.useDma = false
);
#endif
#endif // USE_SDCARD
// no template required since defaults are zero
PG_REGISTER(vcdProfile_t, vcdProfile, PG_VCD_CONFIG, 0);