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
+8
View File
@@ -317,6 +317,14 @@ if(g_model.rssiSource) {
LUA_LOAD_MODEL_SCRIPTS();
SEND_FAILSAFE_1S();
// Reset debug stats for the newly loaded model (after checkAll() warnings)
maxMixerDuration = 0;
#if defined(LUA)
maxLuaInterval = 0;
maxLuaDuration = 0;
lastLuaTime = 0; // avoids counting the load time as one huge interval spike
#endif
}
void storageFlushCurrentModel()