From 937905cdff7839c3a1d15a795c0f35632b0f0be9 Mon Sep 17 00:00:00 2001 From: muramura Date: Sat, 1 Jun 2024 22:54:53 +0900 Subject: [PATCH] SITL: correct valgrind failure in SIM_GPS_SBP2 --- libraries/SITL/SIM_GPS_SBP2.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/libraries/SITL/SIM_GPS_SBP2.cpp b/libraries/SITL/SIM_GPS_SBP2.cpp index 1596d330af6fa..b8c75f5a1fb70 100644 --- a/libraries/SITL/SIM_GPS_SBP2.cpp +++ b/libraries/SITL/SIM_GPS_SBP2.cpp @@ -111,6 +111,7 @@ void GPS_SBP2::publish(const GPS_Data *d) sbp_send_message(SBP_DOPS_MSGTYPE, 0x2222, sizeof(dops), (uint8_t*)&dops); + hb = {}; hb.protocol_major = 2; //Sends protocol version 2.0 sbp_send_message(SBP_HEARTBEAT_MSGTYPE, 0x2222, sizeof(hb), (uint8_t*)&hb);