From b34f5502d2b600cd4f84c0821049db60874f15c2 Mon Sep 17 00:00:00 2001 From: Joachim Stolberg Date: Mon, 7 Jan 2019 21:41:02 +0100 Subject: [PATCH] cycletime bugfix --- sl_controller/controller.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sl_controller/controller.lua b/sl_controller/controller.lua index 5e747fa..f25f227 100644 --- a/sl_controller/controller.lua +++ b/sl_controller/controller.lua @@ -326,7 +326,7 @@ local function on_timer(pos, elapsed) -- considering cycle frequency local cycletime = meta:get_int("cycletime") or 1 local cyclecount = (meta:get_int("cyclecount") or 0) + 1 - if cyclecount < cycletime then + if cycletime == 0 or cyclecount < cycletime then meta:set_int("cyclecount", cyclecount) return true end