diff --git a/main.lua b/main.lua index 014bf44..d08dfed 100644 --- a/main.lua +++ b/main.lua @@ -177,7 +177,6 @@ function normalOperation() startTelnetServer() else displayTime() - print("NO Telent found") end setupCounter=setupCounter-1 else diff --git a/mqtt.lua b/mqtt.lua index ad82d94..016215e 100644 --- a/mqtt.lua +++ b/mqtt.lua @@ -79,7 +79,9 @@ function registerMqtt() stopWordclock() collectgarbage() mydofile("telnet") - startTelnetServer() + if (startTelnetServer ~= nil) then + startTelnetServer() + end elseif (string.match(topic, "row1$")) then row1bgColor = parseBgColor(data, "row1") end