From eec7876028a1e266a08722f16daa508db37bd9e4 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 1596d330af..b8c75f5a1f 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);