fix time bug
This commit is contained in:
parent
ec33ea3f7b
commit
9582205bd8
|
@ -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;
|
||||
}
|
||||
|
||||
}
|
Loading…
Reference in New Issue