mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2025-03-04 08:15:29 +08:00
fix:pwm msh err
This commit is contained in:
parent
fbb65196a7
commit
84b5b2f408
@ -331,10 +331,12 @@ static int pwm_list(int argc, char **argv)
|
||||
pwm_device = (struct rt_device_pwm *)rt_device_find(argv[2]);
|
||||
result_str = (pwm_device == RT_NULL) ? "failure" : "success";
|
||||
rt_kprintf("probe %s %s\n", argv[2], result_str);
|
||||
return (pwm_device == RT_NULL) ? -RT_ERROR : RT_EOK;
|
||||
}
|
||||
else
|
||||
{
|
||||
rt_kprintf("pwm probe <device name> - probe pwm by name\n");
|
||||
return -RT_EINVAL;
|
||||
}
|
||||
}
|
||||
else if (pwm_device == RT_NULL)
|
||||
|
Loading…
x
Reference in New Issue
Block a user