From cefd7ee08c36bb250abef41182d36d62e06dc0a8 Mon Sep 17 00:00:00 2001 From: "bsongis@gmail.com" Date: Sun, 15 Sep 2013 18:53:25 +0000 Subject: [PATCH] [stock] Custom switches not working when comparing a timer with a value (stock only without telemetry mod) --- src/opentx.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/opentx.cpp b/src/opentx.cpp index 5936262a1..b8bd74561 100644 --- a/src/opentx.cpp +++ b/src/opentx.cpp @@ -1034,7 +1034,7 @@ bool getSwitch(int8_t swtch) } #else if (cs->v1 >= MIXSRC_FIRST_TELEM) { - y = (int16_t)3 * cs->v2; // it's a Timer + y = (int16_t)3 * (128+cs->v2); // it's a Timer } else if (cs->v1 >= MIXSRC_GVAR1) { y = cs->v2; // it's a GVAR