]> hydra-www.ietfng.org Git - acmetensortoys-esp-lua_core/commitdiff
nwfnet-sntp: silence uninformative printout
authorNathaniel Wesley Filardo <nwf@cs.jhu.edu>
Mon, 30 Jan 2017 20:06:52 +0000 (15:06 -0500)
committerNathaniel Wesley Filardo <nwf@cs.jhu.edu>
Mon, 30 Jan 2017 20:09:01 +0000 (15:09 -0500)
net/nwfnet-sntp.lua

index fc43089705885e94e6fdf2783d0a8b45da46a469..4f4c82fc1aa5a1cefc733f3056e8a656c0b24244 100644 (file)
@@ -4,9 +4,11 @@ local function dosntp(server)
     if file.open("nwfnet.conf2","r") then
       local conf = cjson.decode(file.read() or "")
       if type(conf) == "table" then
-        if conf["sntp"]   then print("Setting SNTP server"); server = conf["sntp"] end
+        if conf["sntp"]  then server = conf["sntp"] end
        else print("nwfnet.conf2 malformed")
   end end end
+  -- XXX Soon, in upstream, the NTP module will default to a ntp pool;
+  -- we should just let that happen here, when that happens!
   local x, y
   if not server then x, y, server = wifi.ap.getip() end
   if not server then x, y, server = wifi.sta.getip() end