diff --git a/init.lua b/init.lua index 015e8ca..164e15b 100644 --- a/init.lua +++ b/init.lua @@ -39,6 +39,8 @@ function mydofile(mod) dofile( mod .. ".lua") elseif (file.open(mod .. ".lc")) then dofile(mod .. ".lc") + elseif (file.open(mod)) then + dofile(mod) else print("Error: " .. mod) end diff --git a/main.lua b/main.lua index 2b97d2d..a31399c 100644 --- a/main.lua +++ b/main.lua @@ -6,7 +6,7 @@ displayword = {} function startSetupMode() -- start the webserver module mydofile("webserver") - + collectgarbage() wifi.setmode(wifi.SOFTAP) cfg={} cfg.ssid="wordclock"