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:
commit
7505701e64
6 changed files with 379 additions and 277 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue