mirror of
https://github.com/nodemcu/nodemcu-firmware.git
synced 2025-01-30 21:12:55 +08:00
Merge pull request #2353 from pjsg/fix-rotary
Missed setting the ID into the data block
This commit is contained in:
commit
4c3d501b58
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user