From 4dfa6258d9482b0817fc080d36f3fb2f72c8bf79 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Fri, 25 Jun 2021 13:04:37 +1000 Subject: [PATCH] AP_Mount: use ZERO_FARRAY() --- libraries/AP_Mount/SoloGimbalEKF.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/AP_Mount/SoloGimbalEKF.cpp b/libraries/AP_Mount/SoloGimbalEKF.cpp index e646e331e0..16715b6024 100644 --- a/libraries/AP_Mount/SoloGimbalEKF.cpp +++ b/libraries/AP_Mount/SoloGimbalEKF.cpp @@ -41,7 +41,7 @@ SoloGimbalEKF::SoloGimbalEKF() : // complete reset void SoloGimbalEKF::reset() { - memset(&states,0,sizeof(states)); + ZERO_FARRAY(states); memset((void *)&gSense,0,sizeof(gSense)); memset(&Cov,0,sizeof(Cov)); TiltCorrectionSquared = 0;