Copter: tighten type on mavlink_coordinate_frame_to_location_alt_frame

This commit is contained in:
Peter Barker 2019-08-01 11:02:41 +10:00 committed by Peter Barker
parent 880e96448b
commit 18de327e7f

View File

@ -1066,7 +1066,7 @@ void GCS_MAVLINK_Copter::handleMessage(const mavlink_message_t &msg)
break;
}
Location::AltFrame frame;
if (!mavlink_coordinate_frame_to_location_alt_frame(packet.coordinate_frame, frame)) {
if (!mavlink_coordinate_frame_to_location_alt_frame((MAV_FRAME)packet.coordinate_frame, frame)) {
// unknown coordinate frame
break;
}