GCS_MAVLink: move handling of AP_Radio RC input down into AP_RCProtocol

This commit is contained in:
Peter Barker 2024-05-01 13:23:46 +10:00 committed by Andrew Tridgell
parent f9c5c02f91
commit 549411133b

View File

@ -77,7 +77,7 @@
#include <stdio.h>
#if HAL_RCINPUT_WITH_AP_RADIO
#if AP_RADIO_ENABLED
#include <AP_Radio/AP_Radio.h>
#include <AP_BoardConfig/AP_BoardConfig.h>
#endif
@ -3626,7 +3626,7 @@ void GCS_MAVLINK::handle_set_gps_global_origin(const mavlink_message_t &msg)
*/
void GCS_MAVLINK::handle_data_packet(const mavlink_message_t &msg)
{
#if HAL_RCINPUT_WITH_AP_RADIO
#if AP_RADIO_ENABLED
mavlink_data96_t m;
mavlink_msg_data96_decode(&msg, &m);
switch (m.type) {