mirror of
https://github.com/opentx/opentx.git
synced 2025-07-26 01:35:21 +03:00
Inverse switch values starting timers now as well as normal values
This commit is contained in:
parent
304a7018d3
commit
ec5363abbc
1 changed files with 1 additions and 1 deletions
|
@ -1867,7 +1867,7 @@ void perMain()
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
if (atm<(TMR_VAROFS+MAX_SWITCH))
|
if (atm<(TMR_VAROFS+MAX_SWITCH))
|
||||||
sw_toggled[i] = getSwitch((tm>0 ? tm-(TMR_VAROFS-1) : tm+(TMR_VAROFS-1)), 0); // normal switch
|
sw_toggled[i] = tm>0 ? getSwitch(tm-(TMR_VAROFS-1), 0) : !getSwitch(-tm, 0); // normal switch
|
||||||
if (sw_toggled[i])
|
if (sw_toggled[i])
|
||||||
s_timerVal[i]++;
|
s_timerVal[i]++;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue