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

Fixes #2009: Timer Voice minute call not working for persistent timers

Timers moved to timer.cpp
Added timer overflow protection
Added timer gtests
THt mode now triggers on THR>10%
This commit is contained in:
Damjan Adamic 2015-01-29 19:26:54 +01:00
parent 76937ea566
commit afc41f082e
25 changed files with 4001 additions and 3563 deletions

View file

@ -35,9 +35,10 @@
*/
#include <stdint.h>
#include <inttypes.h>
#include <string.h>
#include "opentx.h"
#include "inttypes.h"
#include "string.h"
#include "timers.h"
volatile uint32_t Spi_complete; // TODO in the driver ?
@ -396,11 +397,7 @@ void eeLoadModel(uint8_t id)
customFunctionsReset();
for (uint8_t i=0; i<MAX_TIMERS; i++) {
if (g_model.timers[i].persistent) {
timersStates[i].val = g_model.timers[i].value;
}
}
restoreTimers();
resumeMixerCalculations();
// TODO pulses should be started after mixer calculations ...