From 7a2814d32772f9cff9feabf5add3b8d1d3a3dca4 Mon Sep 17 00:00:00 2001 From: Ollo Date: Sun, 21 Mar 2021 20:37:53 +0100 Subject: [PATCH] Remove compiled file before compiling --- init.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/init.lua b/init.lua index e8cdc94..4213a0a 100644 --- a/init.lua +++ b/init.lua @@ -39,6 +39,7 @@ initTimer:register(5000, tmr.ALARM_SINGLE, function (t) local modlist = { "timecore" , "displayword" } for i,mod in pairs(modlist) do if (file.open(mod .. "_diet.lua")) then + file.remove(mod .. "_diet.lc") print(tostring(i) .. ". Compile " .. mod) ws2812.write(string.char(0,0,0):rep(11*i)..string.char(128,0,0):rep(11)) node.compile(mod .. "_diet.lua")