mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2026-03-27 09:32:28 +08:00
Update pwm.c
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user