未验证 提交 d38dbcaa 编写于 作者: D David Lin 提交者: GitHub

Update pwm.c

上级 508b334f
...@@ -186,7 +186,7 @@ int fh_pwm_probe(void *priv_data) ...@@ -186,7 +186,7 @@ int fh_pwm_probe(void *priv_data)
PWM_Enable(pwm_obj, RT_FALSE); 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) if (pwm_dev == RT_NULL)
{ {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册