From 2c50010a4585b51eda6e1875cffcc39452214fc0 Mon Sep 17 00:00:00 2001 From: Nate Clark Date: Sun, 14 Aug 2022 15:57:18 -0400 Subject: [PATCH] add more logging when time sync fails --- src/lfs/wifi.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lfs/wifi.lua b/src/lfs/wifi.lua index e441b98..3eedaad 100644 --- a/src/lfs/wifi.lua +++ b/src/lfs/wifi.lua @@ -62,8 +62,8 @@ local _ = tmr.create():alarm(900, tmr.ALARM_AUTO, function(t) tm["year"], tm["mon"], tm["day"], tm["hour"], tm["min"], tm["sec"])) bootApp() end, - function() - print("Heap: ", node.heap(), "Time sync failed!") + function(code, err) + print("Heap: ", node.heap(), "Time sync failed!", "Code: ", code, err) bootApp() end) end