From 37aa54f1a1161ad4662611850624db1ac64bf36f Mon Sep 17 00:00:00 2001 From: "bsongis@gmail.com" Date: Sat, 11 May 2013 20:11:30 +0000 Subject: [PATCH] [all] Bug when TRNs and TRNl are used as trigger in 2 different custom functions --- src/opentx.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/opentx.cpp b/src/opentx.cpp index 10812d6a4..c94927dff 100644 --- a/src/opentx.cpp +++ b/src/opentx.cpp @@ -2449,6 +2449,10 @@ void evalFunctions() trimGvar[i] = -1; #endif +#if !defined(PCBSTD) + uint8_t mSwitchDurationIncremented = 0; +#endif + for (uint8_t i=0; iswtch; @@ -2530,7 +2534,8 @@ void evalFunctions() momentary = false; } #if !defined(PCBSTD) - if (short_long) { + if (short_long && !(mSwitchDurationIncremented & (1<