log NTP synchronization
This commit is contained in:
parent
d6cc8f73cc
commit
a13d74e005
1
main.lua
1
main.lua
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user