Skip to content

Commit

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

0 comments on commit 937905c

Please sign in to comment.