mirror of https://github.com/ArduPilot/ardupilot
AP_RPM: replace board ifdef with feature ifdef
This commit is contained in:
parent
f91d23daab
commit
5809e2465b
|
@ -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");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue