fix(cpn): initialise all serialised fields in FrSkyData::clear() (#7440)

Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
Raphael Coeffic
2026-07-15 08:58:51 +10:00
committed by GitHub
co-authored by Claude Opus 4.8
parent f9abdcb001
commit 8a28c4ab96
2 changed files with 49 additions and 0 deletions
+2
View File
@@ -61,9 +61,11 @@ void FrSkyData::clear()
varioCenterMin = 0; // if increment in 0.2m/s = 3.0m/s max
varioCenterMax = 0;
varioMax = 0;
varioCenterSilent = false;
mAhPersistent = 0;
storedMah = 0;
fasOffset = 0;
ignoreSensorIds = false;
for (int i=0; i<4; i++)
screens[i].clear();
varioSource = 0;