From b06db0c20749217178fde2f4f655b800d8a74266 Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Fri, 31 May 2024 12:04:22 +1000 Subject: [PATCH] SITL: correct valgrind failure in SIM_GPS_SBP --- libraries/SITL/SIM_GPS_SBP.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/libraries/SITL/SIM_GPS_SBP.cpp b/libraries/SITL/SIM_GPS_SBP.cpp index b3b8e77d89..9f4c8078e8 100644 --- a/libraries/SITL/SIM_GPS_SBP.cpp +++ b/libraries/SITL/SIM_GPS_SBP.cpp @@ -111,6 +111,7 @@ void GPS_SBP::publish(const GPS_Data *d) sbp_send_message(SBP_DOPS_MSGTYPE, 0x2222, sizeof(dops), (uint8_t*)&dops); + hb = {}; hb.protocol_major = 0; //Sends protocol version 0 sbp_send_message(SBP_HEARTBEAT_MSGTYPE, 0x2222, sizeof(hb), (uint8_t*)&hb);