Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
Nodemcu Firmware
Commits
796fd7ad
Commit
796fd7ad
authored
Jul 25, 2023
by
serg3295
Committed by
J Mattsson
Jan 30, 2024
Browse files
Fix time.get() for 5.3-int32-singlefp firmware on IDF v5.0.2
parent
096164a7
Changes
1
Hide whitespace changes
Inline
Side-by-side
components/modules/time.c
View file @
796fd7ad
...
@@ -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_push
numb
er
(
L
,
tv
.
tv_sec
);
lua_push
integ
er
(
L
,
tv
.
tv_sec
);
lua_push
numb
er
(
L
,
tv
.
tv_usec
);
lua_push
integ
er
(
L
,
tv
.
tv_usec
);
return
2
;
return
2
;
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment