AP_BoardConfig: don't try to set pwm mode for aerofc-v1

We don't have that in aerofc, so don't try to initialize it and fail
with following error messages:

    RCOutput: unable to setup AUX PWM with BRD_PWM_COUNT 0
This commit is contained in:
Lucas De Marchi 2018-06-26 09:54:54 -07:00
parent 0f50cf96ca
commit 0606b00f15
1 changed files with 2 additions and 0 deletions

View File

@ -46,6 +46,7 @@ extern "C" {
*/
void AP_BoardConfig::px4_setup_pwm()
{
#if CONFIG_HAL_BOARD_SUBTYPE != HAL_BOARD_SUBTYPE_PX4_AEROFC_V1
/* configure the FMU driver for the right number of PWMs */
static const struct {
uint8_t mode_parm;
@ -88,6 +89,7 @@ void AP_BoardConfig::px4_setup_pwm()
}
#endif
}
#endif
}
/*