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
+4 -9
View File
@@ -34,9 +34,10 @@
*
*/
#include <inttypes.h>
#include <string.h>
#include "opentx.h"
#include "inttypes.h"
#include "string.h"
#include "timers.h"
uint8_t s_write_err = 0; // error reasons
RlcFile theFile; //used for any file operation
@@ -985,13 +986,7 @@ void eeLoadModel(uint8_t id)
customFunctionsReset();
#if !defined(PCBSTD)
for (uint8_t i=0; i<MAX_TIMERS; i++) {
if (g_model.timers[i].persistent) {
timersStates[i].val = g_model.timers[i].value;
}
}
#endif
restoreTimers();
#if defined(CPUARM)
for (int i=0; i<TELEM_VALUES_MAX; i++) {