[errno code][-RT_EINVAL] fix that use RT_EINVAL without -

This commit is contained in:
Meco Man
2023-03-16 20:21:43 -04:00
committed by Man, Jianting (Meco)
parent e4e88b2f3e
commit dfddd79b24
136 changed files with 316 additions and 324 deletions
+1 -1
View File
@@ -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;
}
+1 -1
View File
@@ -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;
}