ver 0.9.5 reports error in tmr.alarm()

There was no alarm ID.
This commit is contained in:
Damian 2015-02-20 20:24:00 +01:00
parent 94aa3bef17
commit 888fbdf338
1 changed files with 2 additions and 2 deletions

View File

@ -29,11 +29,11 @@ function startServer()
print("===Now, logon and input LUA.====")
end
tmr.alarm(1000, 1, function()
tmr.alarm(1, 1000, 1, function()
if wifi.sta.getip()=="0.0.0.0" then
print("Connect AP, Waiting...")
else
startServer()
tmr.stop()
tmr.stop(1)
end
end)