修改获rtc取时间代码
This commit is contained in:
parent
817774b043
commit
8d00c17d2d
@ -1955,7 +1955,7 @@ extern gtime_t timeget(void)
|
|||||||
{
|
{
|
||||||
gtime_t now;
|
gtime_t now;
|
||||||
now.time =time(RT_NULL);
|
now.time =time(RT_NULL);
|
||||||
now.sec =time(RT_NULL);
|
now.sec = 0;
|
||||||
return timeadd(now, timeoffset_);
|
return timeadd(now, timeoffset_);
|
||||||
}
|
}
|
||||||
/* set current time in utc -----------------------------------------------------
|
/* set current time in utc -----------------------------------------------------
|
||||||
|
Loading…
x
Reference in New Issue
Block a user