diff --git a/libraries/GCS_MAVLink/GCS_Common.cpp b/libraries/GCS_MAVLink/GCS_Common.cpp index b61a680b55..ffce7bdfab 100644 --- a/libraries/GCS_MAVLink/GCS_Common.cpp +++ b/libraries/GCS_MAVLink/GCS_Common.cpp @@ -1002,8 +1002,8 @@ void GCS_MAVLINK::send_radio_in() uint32_t now = AP_HAL::millis(); mavlink_status_t *status = mavlink_get_channel_status(chan); - uint16_t values[18]; - RC_Channels::get_radio_in(values, 18); + uint16_t values[18] = {}; + rc().get_radio_in(values, 18); if (status && (status->flags & MAVLINK_STATUS_FLAG_OUT_MAVLINK1)) { // for mavlink1 send RC_CHANNELS_RAW, for compatibility with OSD implementations