Remove compiled file before compiling
This commit is contained in:
parent
116c30f5e5
commit
7a2814d327
1
init.lua
1
init.lua
@ -39,6 +39,7 @@ initTimer:register(5000, tmr.ALARM_SINGLE, function (t)
|
|||||||
local modlist = { "timecore" , "displayword" }
|
local modlist = { "timecore" , "displayword" }
|
||||||
for i,mod in pairs(modlist) do
|
for i,mod in pairs(modlist) do
|
||||||
if (file.open(mod .. "_diet.lua")) then
|
if (file.open(mod .. "_diet.lua")) then
|
||||||
|
file.remove(mod .. "_diet.lc")
|
||||||
print(tostring(i) .. ". Compile " .. mod)
|
print(tostring(i) .. ". Compile " .. mod)
|
||||||
ws2812.write(string.char(0,0,0):rep(11*i)..string.char(128,0,0):rep(11))
|
ws2812.write(string.char(0,0,0):rep(11*i)..string.char(128,0,0):rep(11))
|
||||||
node.compile(mod .. "_diet.lua")
|
node.compile(mod .. "_diet.lua")
|
||||||
|
Loading…
Reference in New Issue
Block a user