4
0
mirror of https://github.com/RT-Thread/rt-thread.git synced 2025-01-31 15:50:26 +08:00

Update pwm.c

This commit is contained in:
David Lin 2020-03-15 07:22:34 +08:00 committed by GitHub
parent 508b334fe7
commit d38dbcaaa3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -186,7 +186,7 @@ int fh_pwm_probe(void *priv_data)
PWM_Enable(pwm_obj, RT_FALSE);
pwm_dev = rt_calloc(sizeof(struct rt_device));
pwm_dev = rt_calloc(1,sizeof(struct rt_device));
if (pwm_dev == RT_NULL)
{