mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2026-03-23 23:13:32 +08:00
[errno code]fix that use RT_ENOSYS without - (#7084)
* [errno code]fix that use RT_ENOSYS without - * Update bsp/airm2m/air32f103/libraries/rt_drivers/drv_hwtimer.c --------- Co-authored-by: Man, Jianting (Meco) <920369182@qq.com>
This commit is contained in:
@@ -104,7 +104,7 @@ static rt_err_t loongson_pwm_ioctl(struct rt_device_pwm *device, int cmd, void *
|
||||
rc = loongson_pwm_set(device, cfg->channel, cfg->period, cfg->pulse);
|
||||
break;
|
||||
case PWM_CMD_GET:
|
||||
rc = RT_ENOSYS;
|
||||
rc = -RT_ENOSYS;
|
||||
break;
|
||||
default:
|
||||
rc = -RT_EINVAL;
|
||||
|
||||
@@ -115,7 +115,7 @@ static rt_ssize_t rt_rtc_read(rt_device_t dev, rt_off_t pos, void *buffer, rt_si
|
||||
|
||||
static rt_err_t rt_rtc_ioctl(rt_device_t dev, int cmd, void *args)
|
||||
{
|
||||
rt_err_t err = RT_ENOSYS;
|
||||
rt_err_t err = -RT_ENOSYS;
|
||||
|
||||
static int count = 0;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user