1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-17 13:25:30 +03:00

Removing duplicate bb device enum

Changing SDCARD condition to that suggested by @mikeller
Changed make sample to make official
This commit is contained in:
blckmn 2017-02-26 20:59:42 +11:00
parent 9515088a98
commit 1425241d61
5 changed files with 22 additions and 25 deletions

View file

@ -501,7 +501,7 @@ void init(void)
#endif
#ifdef USE_FLASHFS
if (blackboxConfig()->device == BLACKBOX_SPIFLASH) {
if (blackboxConfig()->device == BLACKBOX_DEVICE_FLASH) {
#if defined(USE_FLASH_M25P16)
m25p16_init(flashConfig());
#endif
@ -510,7 +510,7 @@ void init(void)
#endif
#ifdef USE_SDCARD
if (feature(FEATURE_SDCARD) && blackboxConfig()->device == BLACKBOX_SDCARD) {
if (feature(FEATURE_SDCARD) && blackboxConfig()->device == BLACKBOX_DEVICE_SDCARD) {
sdcardInsertionDetectInit();
sdcard_init(sdcardConfig()->useDma);
afatfs_init();