From 639ba6356031f9e3a9633e28f9904cd90c24547e Mon Sep 17 00:00:00 2001 From: Ryan Friedman Date: Thu, 18 May 2023 23:17:21 -0600 Subject: [PATCH] AP_GPS: Remove gsof zero initialization Signed-off-by: Ryan Friedman --- libraries/AP_GPS/AP_GPS_GSOF.h | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/libraries/AP_GPS/AP_GPS_GSOF.h b/libraries/AP_GPS/AP_GPS_GSOF.h index 28ccf62580..8c8d56748a 100644 --- a/libraries/AP_GPS/AP_GPS_GSOF.h +++ b/libraries/AP_GPS/AP_GPS_GSOF.h @@ -79,10 +79,9 @@ private: static const uint8_t STX = 0x02; static const uint8_t ETX = 0x03; - uint8_t packetcount = 0; - - uint32_t gsofmsg_time = 0; - uint8_t gsofmsgreq_index = 0; + uint8_t packetcount; + uint32_t gsofmsg_time; + uint8_t gsofmsgreq_index; const uint8_t gsofmsgreq[5] = {1,2,8,9,12}; }; #endif