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 Randy Mackay
parent fa2bedee08
commit e0f26c3f18
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);