SITL: correct valgrind failure in SIM_GPS_SBP

This commit is contained in:
Peter Barker 2024-05-31 12:04:22 +10:00 committed by Andrew Tridgell
parent 8ef16e91c3
commit b06db0c207
1 changed files with 1 additions and 0 deletions

View File

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