mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2026-03-27 01:10:20 +08:00
[errno code][-RT_EINVAL] fix that use RT_EINVAL without -
This commit is contained in:
committed by
Man, Jianting (Meco)
parent
e4e88b2f3e
commit
dfddd79b24
@@ -314,7 +314,7 @@ static rt_err_t drv_pwm_control(struct rt_device_pwm *device, int cmd, void *arg
|
||||
case PWM_CMD_GET:
|
||||
return drv_pwm_get(pwm_dev, configuration);
|
||||
default:
|
||||
return RT_EINVAL;
|
||||
return -RT_EINVAL;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user