From: Nathaniel Wesley Filardo Date: Fri, 5 Jan 2018 07:15:04 +0000 (-0500) Subject: touch: fix conditional for redraw X-Git-Url: https://hydra-www.ietfng.org/gitweb/?a=commitdiff_plain;h=cfa5c2c7f925d9739a79ae5c8d42ed15965bb594;p=acmetensortoys-esp-lua_lamp touch: fix conditional for redraw --- 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]