Fixed timer switch
This commit is contained in:
@@ -74,6 +74,7 @@ void evalTimers(int16_t throttle, uint8_t tick10ms)
|
|||||||
for (uint8_t i=0; i<TIMERS; i++) {
|
for (uint8_t i=0; i<TIMERS; i++) {
|
||||||
tmrmode_t timerMode = g_model.timers[i].mode;
|
tmrmode_t timerMode = g_model.timers[i].mode;
|
||||||
tmrstart_t timerStart = g_model.timers[i].start;
|
tmrstart_t timerStart = g_model.timers[i].start;
|
||||||
|
uint16_t timerSwtch = g_model.timers[i].swtch;
|
||||||
TimerState * timerState = &timersStates[i];
|
TimerState * timerState = &timersStates[i];
|
||||||
|
|
||||||
if (timerMode) {
|
if (timerMode) {
|
||||||
@@ -122,7 +123,7 @@ void evalTimers(int16_t throttle, uint8_t tick10ms)
|
|||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
if (timerMode > 0) timerMode -= (TMRMODE_COUNT-1);
|
if (timerMode > 0) timerMode -= (TMRMODE_COUNT-1);
|
||||||
if (getSwitch(timerMode)) {
|
if (getSwitch(timerSwtch)) {
|
||||||
newTimerVal++;
|
newTimerVal++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user