mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2025-01-18 11:43:34 +08:00
Update pwm.c
This commit is contained in:
parent
c689c2c67f
commit
b2d33e9147
@ -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));
|
||||
|
Loading…
x
Reference in New Issue
Block a user