Skip to content

Commit

Permalink
SITL: correct valgrind failure in SIM_GPS_SBP
Browse files Browse the repository at this point in the history
  • Loading branch information
peterbarker committed May 31, 2024
1 parent c6a239e commit b2b8eb9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions libraries/SITL/SIM_GPS_SBP.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit b2b8eb9

Please sign in to comment.