From 0d6342944e4c57ce87d59fccddd7c9c6c3a97bce Mon Sep 17 00:00:00 2001 From: Nathaniel Wesley Filardo Date: Sat, 29 Jul 2017 16:12:00 -0400 Subject: [PATCH] fix typo in telnetd-diag rtcfifo --- telnetd/telnetd-diag.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/telnetd/telnetd-diag.lua b/telnetd/telnetd-diag.lua index faceeb9..ec51612 100644 --- a/telnetd/telnetd-diag.lua +++ b/telnetd/telnetd-diag.lua @@ -3,7 +3,7 @@ return { ["boot"] = function(_,s) s(string.format("raw=%d reason=%d",node.bootreason())) end, ["info"] = function(_,s) s(string.format("major=%d minor=%d dev=%d chip=%d flash=%d fs=%d fm=%d fs=%d",node.info())) end, ["heap"] = function(_,s) s(string.format("free=%d",node.heap())) end, - ["fifo"] = function(_,s) if rctfifo and rtcfifo.ready() ~= 0 then s(string.format("fifo=%d",rtcfifo.count())) else s("no rtcfifo") end end, + ["fifo"] = function(_,s) if rtcfifo and rtcfifo.ready() ~= 0 then s(string.format("fifo=%d",rtcfifo.count())) else s("no rtcfifo") end end, ["exec"] = function(l,s) local f, err = loadstring(l) if f then local ok, res = pcall(f); if ok == true then s("ok: "..tostring(res)) else s("pcall err: "..res) end -- 2.50.1