Skip to content

Commit

Permalink
Fix time.get() for 5.3-int32-singlefp firmware on IDF v5.0.2
Browse files Browse the repository at this point in the history
  • Loading branch information
serg3295 authored and jmattsson committed Jan 28, 2024
1 parent 0415e2c commit 544726f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions components/modules/time.c
Expand Up @@ -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;
}

Expand Down

0 comments on commit 544726f

Please sign in to comment.