mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2026-08-18 11:53:05 +08:00
Update pwm.c
This commit is contained in:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user