fix time bug

This commit is contained in:
ambrumf 2023-10-12 09:43:07 +08:00
parent ec33ea3f7b
commit 9582205bd8
1 changed files with 4 additions and 3 deletions

View File

@ -16,7 +16,9 @@
time_t time(time_t *t)
{
NULL_PARAM_CHECK(t);
if (NULL == t) {
return 0;
}
time_t current = 0;
#ifdef RESOURCES_RTC
@ -30,5 +32,4 @@ time_t time(time_t *t)
*t = current;
return current;
}
}