From ef1672befcc6c3404d36aba5d5889f1f9db0018a Mon Sep 17 00:00:00 2001 From: Lucas De Marchi Date: Mon, 20 Mar 2017 11:27:15 -0700 Subject: [PATCH] AP_BoardConfig: replace board ifdef with feature ifdef --- libraries/AP_BoardConfig/px4_drivers.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/libraries/AP_BoardConfig/px4_drivers.cpp b/libraries/AP_BoardConfig/px4_drivers.cpp index 801b50afb9..f769e47bb9 100644 --- a/libraries/AP_BoardConfig/px4_drivers.cpp +++ b/libraries/AP_BoardConfig/px4_drivers.cpp @@ -411,8 +411,7 @@ void AP_BoardConfig::px4_setup_peripherals(void) px4_sensor_error("no ADC found"); } -#if !defined(CONFIG_ARCH_BOARD_PX4FMU_V4) && \ - !defined(CONFIG_ARCH_BOARD_AEROFC_V1) +#if HAL_PX4_HAVE_PX4IO px4_setup_px4io(); #endif