AP_HAL_ChibiOS: add new HAL_PWM_COUNT define

This commit is contained in:
Tom Pittenger 2020-11-29 11:18:00 -08:00 committed by Tom Pittenger
parent 6f92e6298a
commit da74d755d0
1 changed files with 1 additions and 0 deletions

View File

@ -1374,6 +1374,7 @@ def write_PWM_config(f):
if p.type not in pwm_timers:
pwm_timers.append(p.type)
f.write('#define HAL_PWM_COUNT %u\n' % len(pwm_out))
if not pwm_out and not alarm:
print("No PWM output defined")
f.write('''