Merge pull request #236 from dMbski/patch-1
ver 0.9.5 reports error in tmr.alarm()
This commit is contained in:
commit
e60e4f1f5d
|
@ -29,11 +29,11 @@ function startServer()
|
||||||
print("===Now, logon and input LUA.====")
|
print("===Now, logon and input LUA.====")
|
||||||
end
|
end
|
||||||
|
|
||||||
tmr.alarm(1000, 1, function()
|
tmr.alarm(1, 1000, 1, function()
|
||||||
if wifi.sta.getip()=="0.0.0.0" then
|
if wifi.sta.getip()=="0.0.0.0" then
|
||||||
print("Connect AP, Waiting...")
|
print("Connect AP, Waiting...")
|
||||||
else
|
else
|
||||||
startServer()
|
startServer()
|
||||||
tmr.stop()
|
tmr.stop(1)
|
||||||
end
|
end
|
||||||
end)
|
end)
|
||||||
|
|
Loading…
Reference in New Issue