Skip to content

Commit

Permalink
add more logging when time sync fails
Browse files Browse the repository at this point in the history
  • Loading branch information
heythisisnate committed Aug 15, 2022
1 parent b1b8d89 commit 2c50010
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lfs/wifi.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2c50010

Please sign in to comment.