1
0
Fork 0
mirror of https://github.com/opentx/opentx.git synced 2025-07-23 08:15:17 +03:00

dTE min/max wrong in Logical Switches (Companion). GVARS min/max wrong

in Logical Switches (Firmware and Companion)
This commit is contained in:
bsongis 2014-06-21 11:06:58 +02:00
parent 88c4c11b56
commit 40a391d778
2 changed files with 19 additions and 1 deletions

View file

@ -4716,7 +4716,15 @@ void menuModelLogicalSwitches(uint8_t event)
}
else {
lcd_outdezAtt(CSW_3RD_COLUMN, y, cs->v2, LEFT|attr2);
v2_min = -125; v2_max = 125;
#if defined(CPUARM) && defined(GVARS)
if (v1_val >= MIXSRC_GVAR1) {
v2_min = -1024; v2_max = +1024;
}
else
#endif
{
v2_min = -125; v2_max = +125;
}
}
#else
if (v1_val >= MIXSRC_FIRST_TELEM) {