提交 315c2588 编写于 作者: L linshire 提交者: mysterywolf

[bsp] fix the return of the function(drv_pwm_control) in stm32 drv_pwm

上级 14722a48
...@@ -396,7 +396,7 @@ static rt_err_t drv_pwm_control(struct rt_device_pwm *device, int cmd, void *arg ...@@ -396,7 +396,7 @@ static rt_err_t drv_pwm_control(struct rt_device_pwm *device, int cmd, void *arg
case PWM_CMD_GET: case PWM_CMD_GET:
return drv_pwm_get(htim, configuration); return drv_pwm_get(htim, configuration);
default: default:
return RT_EINVAL; return -RT_EINVAL;
} }
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册