fix(radio): reset statistics values on model change (#7518)
This commit is contained in:
@@ -66,6 +66,7 @@ ScriptInputsOutputs scriptInputsOutputs[MAX_SCRIPTS];
|
||||
|
||||
uint16_t maxLuaInterval = 0;
|
||||
uint16_t maxLuaDuration = 0;
|
||||
uint32_t lastLuaTime = 0;
|
||||
tmr10ms_t luaCycleStart;
|
||||
char lua_warning_info[LUA_WARNING_INFO_LEN+1];
|
||||
uint8_t errorState;
|
||||
|
||||
@@ -208,6 +208,7 @@ extern struct our_longjmp * global_lj;
|
||||
|
||||
extern uint16_t maxLuaInterval;
|
||||
extern uint16_t maxLuaDuration;
|
||||
extern uint32_t lastLuaTime;
|
||||
extern uint8_t instructionsPercent;
|
||||
#define LUA_TASK_PERIOD_TICKS 5 // 50 ms
|
||||
|
||||
|
||||
Reference in New Issue
Block a user