From 0d7925059c43700cf6aba0a9a68882c958eedeb3 Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Wed, 1 May 2024 13:23:47 +1000 Subject: [PATCH] ArduCopter: move handling of AP_Radio RC input down into AP_RCProtocol --- ArduCopter/toy_mode.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ArduCopter/toy_mode.cpp b/ArduCopter/toy_mode.cpp index c1cea4d4cc..ee5c7f9f33 100644 --- a/ArduCopter/toy_mode.cpp +++ b/ArduCopter/toy_mode.cpp @@ -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);