mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 14:38:30 -04:00
AP_BoardConfig: fixed default pwm count
for boards without the parameter we should use 16, meaning all channels available thanks to sh83 for noticing
This commit is contained in:
parent
a9449ccd29
commit
57c307a74e
@ -121,7 +121,8 @@ public:
|
||||
#if AP_FEATURE_BOARD_DETECT || defined(AP_FEATURE_BRD_PWM_COUNT_PARAM)
|
||||
return instance?instance->state.pwm_count.get():4;
|
||||
#else
|
||||
return 0;
|
||||
// default to 16, which means all PWM channels available
|
||||
return 16;
|
||||
#endif
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user