fix(radio): reset statistics values on model change (#7518)
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user