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<