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

View File

@ -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

View File

@ -6,7 +6,7 @@ displayword = {}
function startSetupMode()
-- start the webserver module
mydofile("webserver")
collectgarbage()
wifi.setmode(wifi.SOFTAP)
cfg={}
cfg.ssid="wordclock"