enhanced mydofile
This commit is contained in:
parent
f93d0df461
commit
6193618d1b
2
init.lua
2
init.lua
@ -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
|
||||||
|
2
main.lua
2
main.lua
@ -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"
|
||||||
|
Loading…
Reference in New Issue
Block a user