diff --git a/libraries/AP_BoardConfig/AP_BoardConfig.cpp b/libraries/AP_BoardConfig/AP_BoardConfig.cpp index 1457d86b62..e60b8e04b1 100644 --- a/libraries/AP_BoardConfig/AP_BoardConfig.cpp +++ b/libraries/AP_BoardConfig/AP_BoardConfig.cpp @@ -225,7 +225,7 @@ const AP_Param::GroupInfo AP_BoardConfig::var_info[] = { AP_GROUPINFO("IO_ENABLE", 10, AP_BoardConfig, state.io_enable, 1), #endif -#if HAL_RCINPUT_WITH_AP_RADIO +#if AP_RADIO_ENABLED // @Group: RADIO // @Path: ../AP_Radio/AP_Radio.cpp AP_SUBGROUPINFO(_radio, "RADIO", 11, AP_BoardConfig, AP_Radio), diff --git a/libraries/AP_BoardConfig/AP_BoardConfig.h b/libraries/AP_BoardConfig/AP_BoardConfig.h index 938180a238..3f6401d624 100644 --- a/libraries/AP_BoardConfig/AP_BoardConfig.h +++ b/libraries/AP_BoardConfig/AP_BoardConfig.h @@ -5,8 +5,9 @@ #include #include #include +#include -#if HAL_RCINPUT_WITH_AP_RADIO +#if AP_RADIO_ENABLED #include #endif @@ -292,7 +293,7 @@ private: } heater; #endif -#if HAL_RCINPUT_WITH_AP_RADIO +#if AP_RADIO_ENABLED // direct attached radio AP_Radio _radio; #endif