diff --git a/libraries/AP_Param_Helper/AP_Param_Helper.cpp b/libraries/AP_Param_Helper/AP_Param_Helper.cpp index 8c4d19948d..f1ac083f2c 100644 --- a/libraries/AP_Param_Helper/AP_Param_Helper.cpp +++ b/libraries/AP_Param_Helper/AP_Param_Helper.cpp @@ -5,9 +5,13 @@ #if defined(HAL_NEEDS_PARAM_HELPER) const AP_Param::GroupInfo AP_Param_Helper::var_info[] = { +#if defined(F4LIGHT_HAL_VARINFO) + F4LIGHT_HAL_VARINFO +#endif + // only if board defines parameters #ifdef BOARD_HAL_VARINFO - BOARD_HAL_VARINFO, + BOARD_HAL_VARINFO #endif AP_GROUPEND }; diff --git a/libraries/AP_Param_Helper/AP_Param_Helper.h b/libraries/AP_Param_Helper/AP_Param_Helper.h index 99a9af23d3..904f7b4fe7 100644 --- a/libraries/AP_Param_Helper/AP_Param_Helper.h +++ b/libraries/AP_Param_Helper/AP_Param_Helper.h @@ -16,7 +16,12 @@ public: static const AP_Param::GroupInfo var_info[]; -// only if defined +// common HAL params +#if defined(F4LIGHT_HAL_PARAMS) + F4LIGHT_HAL_PARAMS +#endif + +// per board params - only if defined #ifdef BOARD_HAL_PARAMS BOARD_HAL_PARAMS #endif