]> hydra-www.ietfng.org Git - acmetensortoys-esp-lua_lamp/commit
lamp: lua5.0-isms in draw-{candle,staryeyes}
authorNathaniel Wesley Filardo <nwf@cs.jhu.edu>
Wed, 7 Dec 2016 07:52:24 +0000 (02:52 -0500)
committerNathaniel Wesley Filardo <nwf@cs.jhu.edu>
Wed, 7 Dec 2016 07:52:24 +0000 (02:52 -0500)
commite68e815afc325193c03ea6517e45ebcf5e6990b0
treeece45ead937297dbe625a930582b0fb11bec094b
parent5286a1c17ce8a64d4c9565f7a2a437e601d8263c
lamp: lua5.0-isms in draw-{candle,staryeyes}

In particular, the use of the function-local "arg" is deprecated and
gone entirely in lua5.2. Switch to "ipairs{...}" rather than
"ipairs(arg)" which should work with both nodemcu and host programs.
draw-candle.lua
draw-staryeyes.lua