소스 검색

fix nodeingo_lua for AP more.

wifi.sta.getip() is nul in AP mode
Gregor 7 년 전
부모
커밋
54b6525805
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      http/node_info.lua

+ 1 - 1
http/node_info.lua

@@ -1,5 +1,5 @@
 local function sendAttr(connection, attr, val)
-   connection:send("<li><b>".. attr .. ":</b> " .. val .. "<br></li>\n")
+   connection:send("<li><b>".. attr .. ":</b> " .. (val or "nil") .. "<br></li>\n")
 end
 
 return function (connection, req, args)