1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-23 16:25:31 +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

@ -1657,8 +1657,12 @@ void handleBlackbox(timeUs_t currentTimeUs)
static bool canUseBlackboxWithCurrentConfiguration(void)
{
#ifdef USE_SDCARD
return feature(FEATURE_BLACKBOX) &&
(blackboxConfig()->device != BLACKBOX_SDCARD || feature(FEATURE_SDCARD));
!(blackboxConfig()->device == BLACKBOX_DEVICE_SDCARD && !feature(FEATURE_SDCARD));
#else
return feature(FEATURE_BLACKBOX);
#endif
}
/**