diff --git a/ArduCopter/toy_mode.cpp b/ArduCopter/toy_mode.cpp
index 0c18cc7ece..56f5387f4a 100644
--- a/ArduCopter/toy_mode.cpp
+++ b/ArduCopter/toy_mode.cpp
@@ -956,7 +956,7 @@ void ToyMode::handle_message(mavlink_message_t *msg)
         // immediately update AP_Notify recording flag
         AP_Notify::flags.video_recording = 1;
     } else if (strncmp(m.name, "WIFICHAN", 10) == 0) {
-#ifdef HAL_RCINPUT_WITH_AP_RADIO
+#if HAL_RCINPUT_WITH_AP_RADIO
         AP_Radio *radio = AP_Radio::instance();
         if (radio) {
             radio->set_wifi_channel(m.value);