From 6195f5ecc1667f373126ce9e7e611a24906572d4 Mon Sep 17 00:00:00 2001 From: bsongis Date: Fri, 29 Aug 2014 11:53:20 +0200 Subject: [PATCH] Fixes #1646 --- radio/src/switches.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/radio/src/switches.cpp b/radio/src/switches.cpp index 2b398ac9c..4028af48d 100644 --- a/radio/src/switches.cpp +++ b/radio/src/switches.cpp @@ -216,7 +216,9 @@ bool getLogicalSwitch(uint8_t idx) #endif if (ls->func == LS_FUNC_NONE || (s && !getSwitch(s))) { - LS_LAST_VALUE(mixerCurrentFlightMode, idx) = CS_LAST_VALUE_INIT; + if (ls->func != LS_FUNC_STICKY) { + LS_LAST_VALUE(mixerCurrentFlightMode, idx) = CS_LAST_VALUE_INIT; + } result = false; } else if ((s=lswFamily(ls->func)) == LS_FAMILY_BOOL) {