]> hydra-www.ietfng.org Git - acmetensortoys-esp-lua_lamp/commitdiff
mqtt_revert should not be local
authorNathaniel Wesley Filardo <nwf@cs.jhu.edu>
Thu, 13 Oct 2016 23:38:30 +0000 (19:38 -0400)
committerNathaniel Wesley Filardo <nwf@cs.jhu.edu>
Thu, 13 Oct 2016 23:38:30 +0000 (19:38 -0400)
No functional change as the -remote module already ends up making this
global.  Still, for documentation...

init2.lua

index d3fe857618ba825f40e4e6b4f2b61e4e4257bdd9..4d93e5ed6e6f520a5460ee5b29a155245591b436 100644 (file)
--- a/init2.lua
+++ b/init2.lua
@@ -46,7 +46,7 @@ end
 function leddefault(fb,...) fb:fill(0,0,0); local ix; for ix = 25,32 do fb:set(ix,...) end end
 
 -- MQTT-driven local setting
-local mqtt_revert = nil
+mqtt_revert = nil
 nwfnet.onmqtt["lamp"] = function(c,t,m) if t and m and t:find("^lamp/[^/]+/out") then dofile("lamp-remote.lc")(m) end end
 
 -- TODO: messages to specific lamps?  Multiple brokers?