1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-24 00:35:39 +03:00

Unified warning activation conditions.

This commit is contained in:
mikeller 2018-11-03 17:37:18 +13:00
parent 99eab92200
commit 286f21150c
6 changed files with 17 additions and 8 deletions

View file

@ -47,6 +47,7 @@
#include "drivers/vtx_common.h"
#include "fc/config.h"
#include "fc/core.h"
#include "fc/rc_controls.h"
#include "fc/rc_modes.h"
#include "fc/runtime_config.h"
@ -548,7 +549,7 @@ static void applyLedWarningLayer(bool updateNow, timeUs_t *timer)
if (!ARMING_FLAG(ARMED) && isArmingDisabled()) {
warningFlags |= 1 << WARNING_ARMING_DISABLED;
}
if (IS_RC_MODE_ACTIVE(BOXFLIPOVERAFTERCRASH)) {
if (isFlipOverAfterCrashWarningActive()) {
warningFlags |= 1 << WARNING_CRASH_FLIP_ACTIVE;
}
}