mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 06:28:27 -04:00
SITL: correct valgrind failure in SIM_GPS_SBP
This commit is contained in:
parent
8ef16e91c3
commit
b06db0c207
@ -111,6 +111,7 @@ void GPS_SBP::publish(const GPS_Data *d)
|
|||||||
sbp_send_message(SBP_DOPS_MSGTYPE, 0x2222, sizeof(dops),
|
sbp_send_message(SBP_DOPS_MSGTYPE, 0x2222, sizeof(dops),
|
||||||
(uint8_t*)&dops);
|
(uint8_t*)&dops);
|
||||||
|
|
||||||
|
hb = {};
|
||||||
hb.protocol_major = 0; //Sends protocol version 0
|
hb.protocol_major = 0; //Sends protocol version 0
|
||||||
sbp_send_message(SBP_HEARTBEAT_MSGTYPE, 0x2222, sizeof(hb),
|
sbp_send_message(SBP_HEARTBEAT_MSGTYPE, 0x2222, sizeof(hb),
|
||||||
(uint8_t*)&hb);
|
(uint8_t*)&hb);
|
||||||
|
Loading…
Reference in New Issue
Block a user