4
0
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:
David Lin 2020-03-08 07:18:37 +08:00 committed by GitHub
parent c689c2c67f
commit b2d33e9147
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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));