From cfa5c2c7f925d9739a79ae5c8d42ed15965bb594 Mon Sep 17 00:00:00 2001 From: Nathaniel Wesley Filardo Date: Fri, 5 Jan 2018 02:15:04 -0500 Subject: [PATCH] touch: fix conditional for redraw --- lamp-touch.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lamp-touch.lua b/lamp-touch.lua index df146fb..97bef83 100644 --- a/lamp-touch.lua +++ b/lamp-touch.lua @@ -202,7 +202,7 @@ local function ontouch() if (ledfb == touchfb) and not didChangeFn and didChangeColor and cccb ~= nil then -- all we did was change the color(s); inform the existing animation cccb() - elseif didChangeFn then + elseif didChangeFn or didChangeColor then -- full (re)load touchtmr:unregister() touchlastfn = touchfns[touchfnix] -- 2.50.1