log NTP synchronization

This commit is contained in:
Ollo 2023-03-02 21:19:32 +01:00
parent d6cc8f73cc
commit a13d74e005

View File

@ -8,6 +8,7 @@ rgbBuffer = ws2812.newBuffer(114, 3)
function syncTimeFromInternet() function syncTimeFromInternet()
if (syncRunning == nil) then if (syncRunning == nil) then
print("NTP: " .. tostring(sntpserverhostname))
syncRunning=true syncRunning=true
sntp.sync(sntpserverhostname, sntp.sync(sntpserverhostname,
function(sec,usec,server) function(sec,usec,server)