diff --git a/init.lua b/init.lua index 7a0e284..3ea263e 100644 --- a/init.lua +++ b/init.lua @@ -10,6 +10,9 @@ bootledtimer:register(500, tmr.ALARM_AUTO, function (t) counter1=counter1+1 spaceLeds = math.max(MAXLEDS - (counter1*2), 0) ws2812.write(string.char(128,0,0):rep(counter1) .. string.char(0,0,0):rep(spaceLeds) .. string.char(0,0,64):rep(counter1)) + if ((counter1*2) > 114) then + t:unregister() + end end) bootledtimer:start() @@ -59,6 +62,7 @@ initTimer:register(5000, tmr.ALARM_SINGLE, function (t) (file.open("timecore.lua")) or (file.open("wordclock.lua")) or (file.open("displayword.lua")) or + (file.open("websrv_diet.lua")) or (file.open("mqtt.lua")) or (file.open("ds18b20.lua")) or (file.open("telnet.lua")) diff --git a/tools/initialFlash.sh b/tools/initialFlash.sh index 858bfe7..ce22f43 100755 --- a/tools/initialFlash.sh +++ b/tools/initialFlash.sh @@ -26,7 +26,7 @@ if [ $# -eq 0 ]; then fi if [ $# -eq 1 ]; then - FILES="displayword.lua main.lua timecore.lua webpage.html webserver.lua telnet.lua wordclock.lua init.lua" + FILES="displayword.lua main.lua timecore.lua webpage.html websrv_diet.lua telnet.lua wordclock.lua init.lua" else FILES=$2 fi