Fix time.get() for 5.3-int32-singlefp firmware on IDF v5.0.2
This commit is contained in:
parent
096164a75c
commit
796fd7ad0e
|
@ -32,8 +32,8 @@ static int time_get(lua_State *L)
|
|||
{
|
||||
struct timeval tv;
|
||||
gettimeofday (&tv, NULL);
|
||||
lua_pushnumber (L, tv.tv_sec);
|
||||
lua_pushnumber (L, tv.tv_usec);
|
||||
lua_pushinteger (L, tv.tv_sec);
|
||||
lua_pushinteger (L, tv.tv_usec);
|
||||
return 2;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue