Update pwm.c

This commit is contained in:
David Lin
2020-03-08 07:18:37 +08:00
committed by GitHub
parent c689c2c67f
commit b2d33e9147
+1
View File
@@ -190,6 +190,7 @@ int fh_pwm_probe(void *priv_data)
if (pwm_dev == RT_NULL)
{
rt_kprintf("ERROR: %s rt_device malloc failed\n", __func__);
return -RT_EIO;
}
rt_memset(pwm_dev, 0, sizeof(struct rt_device));