AP_RPM: replace board ifdef with feature ifdef

This commit is contained in:
Lucas De Marchi 2017-03-20 11:58:36 -07:00 committed by Andrew Tridgell
parent f91d23daab
commit 5809e2465b
1 changed files with 1 additions and 2 deletions

View File

@ -46,8 +46,7 @@ extern "C" {
AP_RPM_PX4_PWM::AP_RPM_PX4_PWM(AP_RPM &_ap_rpm, uint8_t instance, AP_RPM::RPM_State &_state) : AP_RPM_PX4_PWM::AP_RPM_PX4_PWM(AP_RPM &_ap_rpm, uint8_t instance, AP_RPM::RPM_State &_state) :
AP_RPM_Backend(_ap_rpm, instance, _state) AP_RPM_Backend(_ap_rpm, instance, _state)
{ {
#if !defined(CONFIG_ARCH_BOARD_PX4FMU_V1) && \ #if HAL_PX4_HAVE_PWM_INPUT
!defined(CONFIG_ARCH_BOARD_AEROFC_V1)
if (AP_BoardConfig::px4_start_driver(pwm_input_main, "pwm_input", "start")) { if (AP_BoardConfig::px4_start_driver(pwm_input_main, "pwm_input", "start")) {
hal.console->printf("started pwm_input driver\n"); hal.console->printf("started pwm_input driver\n");
} }