1
0
Fork 0
mirror of https://github.com/opentx/opentx.git synced 2025-07-26 01:35:21 +03:00

Merge pull request #1119 from opentx/bsongis/logical_switches_issue_1039

Bsongis/logical switches issue 1039
This commit is contained in:
Damjan Adamic 2014-05-19 22:04:30 +02:00
commit 7505701e64
6 changed files with 379 additions and 277 deletions

View file

@ -1520,9 +1520,12 @@ void flightReset()
#if defined(FRSKY)
telemetryReset();
#endif
lswReset();
logicalSwitchesReset();
#if !defined(CPUARM)
s_last_switch_value = 0;
#endif
s_mixer_first_run_done = false;
START_SILENCE_PERIOD();
@ -2221,7 +2224,7 @@ void doMixerCalculations()
s_cnt_100ms -= 10;
s_cnt_1s += 1;
lswTimerTick();
logicalSwitchesTimerTick();
if (s_cnt_1s >= 10) { // 1sec
s_cnt_1s -= 10;