SITL: correct valgrind failure in SIM_GPS_SBP2

This commit is contained in:
muramura 2024-06-01 22:54:53 +09:00 committed by Peter Barker
parent db6245bb66
commit eec7876028
1 changed files with 1 additions and 0 deletions

View File

@ -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);