[stock] Custom switches not working when comparing a timer with a value (stock only without telemetry mod)
This commit is contained in:
+1
-1
@@ -1034,7 +1034,7 @@ bool getSwitch(int8_t swtch)
|
|||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
if (cs->v1 >= MIXSRC_FIRST_TELEM) {
|
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) {
|
else if (cs->v1 >= MIXSRC_GVAR1) {
|
||||||
y = cs->v2; // it's a GVAR
|
y = cs->v2; // it's a GVAR
|
||||||
|
|||||||
Reference in New Issue
Block a user