From 6193618d1b66c2002031c53cfb9eda04f22dcd62 Mon Sep 17 00:00:00 2001 From: Ollo Date: Sun, 31 Jan 2021 20:45:59 +0100 Subject: [PATCH] enhanced mydofile --- init.lua | 2 ++ main.lua | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) 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"