From bcec837f0697652752fd679454006691df10352b Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Mon, 10 Apr 2017 10:02:42 +1000 Subject: [PATCH] AP_BoardConfig: fixed warning in SITL build --- libraries/AP_BoardConfig/AP_BoardConfig.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libraries/AP_BoardConfig/AP_BoardConfig.cpp b/libraries/AP_BoardConfig/AP_BoardConfig.cpp index 0e46e9d74b..d930f94d52 100644 --- a/libraries/AP_BoardConfig/AP_BoardConfig.cpp +++ b/libraries/AP_BoardConfig/AP_BoardConfig.cpp @@ -165,6 +165,7 @@ const AP_Param::GroupInfo AP_BoardConfig::var_info[] = { AP_GROUPINFO("TYPE", 9, AP_BoardConfig, px4.board_type, BOARD_TYPE_DEFAULT), #endif +#if CONFIG_HAL_BOARD == HAL_BOARD_PX4 || CONFIG_HAL_BOARD == HAL_BOARD_VRBRAIN #if HAL_PX4_HAVE_PX4IO // @Param: BRD_IO_ENABLE // @DisplayName: Enable IO co-processor @@ -173,6 +174,7 @@ const AP_Param::GroupInfo AP_BoardConfig::var_info[] = { // @RebootRequired: True // @User: Advanced AP_GROUPINFO("IO_ENABLE", 10, AP_BoardConfig, px4.io_enable, 1), +#endif #endif AP_GROUPEND