Commit 796fd7ad authored by serg3295's avatar serg3295 Committed by J Mattsson
Browse files

Fix time.get() for 5.3-int32-singlefp firmware on IDF v5.0.2

parent 096164a7
...@@ -32,8 +32,8 @@ static int time_get(lua_State *L) ...@@ -32,8 +32,8 @@ static int time_get(lua_State *L)
{ {
struct timeval tv; struct timeval tv;
gettimeofday (&tv, NULL); gettimeofday (&tv, NULL);
lua_pushnumber (L, tv.tv_sec); lua_pushinteger (L, tv.tv_sec);
lua_pushnumber (L, tv.tv_usec); lua_pushinteger (L, tv.tv_usec);
return 2; return 2;
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment