mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-23 16:25:31 +03:00
VTX low power on disarm correction, made it conditional on failsafe. Keep VTX power up when in failsafe.
This commit is contained in:
parent
a8f28b8973
commit
deb3851b89
1 changed files with 3 additions and 1 deletions
|
@ -31,6 +31,8 @@
|
|||
#include "fc/rc_modes.h"
|
||||
#include "fc/runtime_config.h"
|
||||
|
||||
#include "flight/failsafe.h"
|
||||
|
||||
#include "io/vtx.h"
|
||||
#include "io/vtx_string.h"
|
||||
#include "io/vtx_control.h"
|
||||
|
@ -106,7 +108,7 @@ static vtxSettingsConfig_t vtxGetSettings(void)
|
|||
}
|
||||
#endif
|
||||
|
||||
if (!ARMING_FLAG(ARMED) && settings.lowPowerDisarm) {
|
||||
if (!ARMING_FLAG(ARMED) && settings.lowPowerDisarm && !failsafeIsActive()) {
|
||||
settings.power = VTX_SETTINGS_DEFAULT_POWER;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue