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:
Andrew Tridgell 2018-04-15 15:39:51 +10:00
parent a9449ccd29
commit 57c307a74e
1 changed files with 2 additions and 1 deletions

View File

@ -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
}