1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-22 15:55:48 +03:00

Protection to ensure only one or the other is initialised in regards to blackbox (for BlueJayF4)

This commit is contained in:
blckmn 2017-02-25 16:24:01 +11:00
parent ff40e8c844
commit 4b799ada5e
4 changed files with 20 additions and 8 deletions

View file

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