fix(radio): reset statistics values on model change (#7518)

This commit is contained in:
3djc
2026-07-04 18:34:15 +10:00
committed by GitHub
parent 057883da83
commit 45e8d93eec
4 changed files with 10 additions and 2 deletions
+1
View File
@@ -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;
+1
View File
@@ -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