AP_OpenDroneID: correct compilation under gcc 7.5.0

This commit is contained in:
Peter Barker 2022-08-11 09:20:29 +10:00 committed by Peter Barker
parent df2e354828
commit 67a87800f9

View File

@ -312,7 +312,7 @@ void AP_OpenDroneID::send_location_message()
{
WITH_SEMAPHORE(_sem);
// take semaphore so CAN gets a consistent packet
pkt_location = {
pkt_location = mavlink_open_drone_id_location_t{
latitude : latitude,
longitude : longitude,
altitude_barometric : altitude_barometric,