[stock] Custom switches not working when comparing a timer with a value (stock only without telemetry mod)

This commit is contained in:
bsongis@gmail.com
2013-09-15 18:53:25 +00:00
parent 8af733fb3d
commit cefd7ee08c
+1 -1
View File
@@ -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