From deb3851b899fc75db2d9df8b96fbf417e25cd1ea Mon Sep 17 00:00:00 2001 From: Anders Hoglund Date: Fri, 23 Feb 2018 13:50:15 +0100 Subject: [PATCH] VTX low power on disarm correction, made it conditional on failsafe. Keep VTX power up when in failsafe. --- src/main/io/vtx.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main/io/vtx.c b/src/main/io/vtx.c index a9342c9ce..de2be71d1 100644 --- a/src/main/io/vtx.c +++ b/src/main/io/vtx.c @@ -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; }