From 888fbdf338cd2e48aa8ca79fc5ff8916a05955cb Mon Sep 17 00:00:00 2001 From: Damian Date: Fri, 20 Feb 2015 20:24:00 +0100 Subject: [PATCH] ver 0.9.5 reports error in tmr.alarm() There was no alarm ID. --- lua_examples/telnet.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lua_examples/telnet.lua b/lua_examples/telnet.lua index 18645187..22610445 100644 --- a/lua_examples/telnet.lua +++ b/lua_examples/telnet.lua @@ -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)