mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2026-09-23 04:04:15 +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
@@ -244,7 +244,7 @@ static rt_err_t raspi_rtc_control(rt_device_t dev, int cmd, void *args)
|
||||
raspi_set_timestamp(*(time_t *)args);
|
||||
break;
|
||||
default:
|
||||
return RT_EINVAL;
|
||||
return -RT_EINVAL;
|
||||
}
|
||||
return RT_EOK;
|
||||
}
|
||||
|
||||
@@ -88,7 +88,7 @@ static rt_err_t raspi_rtc_control(rt_device_t dev, int cmd, void *args)
|
||||
raspi_set_timestamp(*(time_t *)args);
|
||||
break;
|
||||
default:
|
||||
return RT_EINVAL;
|
||||
return -RT_EINVAL;
|
||||
}
|
||||
return RT_EOK;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user