mirror of https://github.com/ArduPilot/ardupilot
AP_HAL_ChibiOS: add new HAL_PWM_COUNT define
This commit is contained in:
parent
6f92e6298a
commit
da74d755d0
|
@ -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('''
|
||||
|
|
Loading…
Reference in New Issue