]> hydra-www.ietfng.org Git - acmetensortoys-esp-lua_lamp/commitdiff
init2: fix remotemsg
authorNathaniel Wesley Filardo <nwfilardo@gmail.com>
Thu, 26 Dec 2019 00:44:13 +0000 (00:44 +0000)
committerNathaniel Wesley Filardo <nwfilardo@gmail.com>
Thu, 26 Dec 2019 00:44:13 +0000 (00:44 +0000)
Omitting the ()s means that the actual function doesn't get called, just
loaded.

init2.lua

index dcdda146aaecf8287f81ae79cda44faa8d7d71df..7cf3a4ed3e20d17fe84675c8ed045ac021179baf 100644 (file)
--- a/init2.lua
+++ b/init2.lua
@@ -77,7 +77,7 @@ local function remotemsg(m)
     touchtmr:unregister()
     ledfb = remotefb
     removeremote()
-    OVL["lamp-remote"](m)
+    OVL["lamp-remote"]()(m)
   end
 end