Missed setting the ID into the data block

This commit is contained in:
philip 2018-04-12 22:09:52 -04:00
parent cda8da622d
commit 81435ceecf
1 changed files with 2 additions and 0 deletions

View File

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