diff --git a/libraries/SITL/SIM_GPS_SBP.cpp b/libraries/SITL/SIM_GPS_SBP.cpp index 9f4c8078e8c93..bc1a154a416d3 100644 --- a/libraries/SITL/SIM_GPS_SBP.cpp +++ b/libraries/SITL/SIM_GPS_SBP.cpp @@ -111,8 +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 + hb = {}; //Sends protocol version 0 sbp_send_message(SBP_HEARTBEAT_MSGTYPE, 0x2222, sizeof(hb), (uint8_t*)&hb);