ArduCopter: Move MAVLink size check into library

This commit is contained in:
Niels Joubert 2014-06-10 15:55:18 -07:00 committed by Andrew Tridgell
parent fa78634959
commit 10b4757706

View File

@ -574,9 +574,7 @@ bool GCS_MAVLINK::try_send_message(enum ap_message id)
break;
case MSG_GPS_RAW:
CHECK_PAYLOAD_SIZE(GPS_RAW_INT);
gcs[chan-MAVLINK_COMM_0].send_gps_raw(gps);
break;
return gcs[chan-MAVLINK_COMM_0].send_gps_raw(gps);
case MSG_SYSTEM_TIME:
CHECK_PAYLOAD_SIZE(SYSTEM_TIME);