enhanced mydofile

This commit is contained in:
Ollo
2021-01-31 20:45:59 +01:00
parent f93d0df461
commit 6193618d1b
2 changed files with 3 additions and 1 deletions
+2
View File
@@ -39,6 +39,8 @@ function mydofile(mod)
dofile( mod .. ".lua") dofile( mod .. ".lua")
elseif (file.open(mod .. ".lc")) then elseif (file.open(mod .. ".lc")) then
dofile(mod .. ".lc") dofile(mod .. ".lc")
elseif (file.open(mod)) then
dofile(mod)
else else
print("Error: " .. mod) print("Error: " .. mod)
end end
+1 -1
View File
@@ -6,7 +6,7 @@ displayword = {}
function startSetupMode() function startSetupMode()
-- start the webserver module -- start the webserver module
mydofile("webserver") mydofile("webserver")
collectgarbage()
wifi.setmode(wifi.SOFTAP) wifi.setmode(wifi.SOFTAP)
cfg={} cfg={}
cfg.ssid="wordclock" cfg.ssid="wordclock"