Commit 81435cee authored by philip's avatar philip
Browse files

Missed setting the ID into the data block

parent cda8da62
...@@ -152,6 +152,8 @@ static int lrotary_setup( lua_State* L ) ...@@ -152,6 +152,8 @@ static int lrotary_setup( lua_State* L )
DATA *d = data[id]; DATA *d = data[id];
memset(d, 0, sizeof(*d)); memset(d, 0, sizeof(*d));
d->id = id;
os_timer_setfn(&d->timer, lrotary_timer_done, (void *) d); os_timer_setfn(&d->timer, lrotary_timer_done, (void *) d);
int i; int i;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment