mirror of https://github.com/ArduPilot/ardupilot
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:
parent
0f50cf96ca
commit
0606b00f15
|
@ -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
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
Loading…
Reference in New Issue