From 81435ceecf7a95c570843cd7aa9f3e137f909ac9 Mon Sep 17 00:00:00 2001 From: philip Date: Thu, 12 Apr 2018 22:09:52 -0400 Subject: [PATCH] Missed setting the ID into the data block --- app/modules/rotary.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/modules/rotary.c b/app/modules/rotary.c index af60a4e3..cedb02fd 100644 --- a/app/modules/rotary.c +++ b/app/modules/rotary.c @@ -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;