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
81435cee
Commit
81435cee
authored
Apr 12, 2018
by
philip
Browse files
Missed setting the ID into the data block
parent
cda8da62
Changes
1
Hide whitespace changes
Inline
Side-by-side
app/modules/rotary.c
View file @
81435cee
...
...
@@ -152,6 +152,8 @@ static int lrotary_setup( lua_State* L )
DATA
*
d
=
data
[
id
];
memset
(
d
,
0
,
sizeof
(
*
d
));
d
->
id
=
id
;
os_timer_setfn
(
&
d
->
timer
,
lrotary_timer_done
,
(
void
*
)
d
);
int
i
;
...
...
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