]> hydra-www.ietfng.org Git - acmetensortoys-esp-lua_lamp/commitdiff
touch: fix conditional for redraw
authorNathaniel Wesley Filardo <nwf@cs.jhu.edu>
Fri, 5 Jan 2018 07:15:04 +0000 (02:15 -0500)
committerNathaniel Wesley Filardo <nwf@cs.jhu.edu>
Fri, 5 Jan 2018 07:15:04 +0000 (02:15 -0500)
lamp-touch.lua

index df146fbcade2d449e477ab612522dfb9feb52230..97bef8336d6fa85d26a0ca6c7d1a97ada396e076 100644 (file)
@@ -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]