ArduCopter : HAL_RCINPUT_WITH_AP_RADIO definition

This commit is contained in:
Pierre Kancir 2018-03-13 10:33:10 +01:00 committed by Randy Mackay
parent 797fc84e92
commit aa8a90271e
1 changed files with 1 additions and 1 deletions

View File

@ -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);