ArduCopter: move handling of AP_Radio RC input down into AP_RCProtocol

This commit is contained in:
Peter Barker 2024-05-01 13:23:47 +10:00 committed by Andrew Tridgell
parent 549411133b
commit 0d7925059c
1 changed files with 1 additions and 1 deletions

View File

@ -956,7 +956,7 @@ void ToyMode::handle_message(const mavlink_message_t &msg)
// immediately update AP_Notify recording flag
AP_Notify::flags.video_recording = true;
} else if (strncmp(m.name, "WIFICHAN", 10) == 0) {
#if HAL_RCINPUT_WITH_AP_RADIO
#if AP_RADIO_ENABLED
AP_Radio *radio = AP_Radio::get_singleton();
if (radio) {
radio->set_wifi_channel(m.value);