We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fbb6519 commit 84b5b2fCopy full SHA for 84b5b2f
components/drivers/misc/rt_drv_pwm.c
@@ -331,10 +331,12 @@ static int pwm_list(int argc, char **argv)
331
pwm_device = (struct rt_device_pwm *)rt_device_find(argv[2]);
332
result_str = (pwm_device == RT_NULL) ? "failure" : "success";
333
rt_kprintf("probe %s %s\n", argv[2], result_str);
334
+ return (pwm_device == RT_NULL) ? -RT_ERROR : RT_EOK;
335
}
336
else
337
{
338
rt_kprintf("pwm probe <device name> - probe pwm by name\n");
339
+ return -RT_EINVAL;
340
341
342
else if (pwm_device == RT_NULL)
0 commit comments