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

This commit is contained in:
serg3295 2023-07-25 12:13:33 +03:00 committed by J Mattsson
parent 096164a75c
commit 796fd7ad0e
1 changed files with 2 additions and 2 deletions

View File

@ -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;
}