Montecri / GNSSTimeServer

WiFi-enabled GNSS (GPS, BeiDou, GLONASS, Galileo) fed NTP/RDATE server based on ESP8266/ESP32 and Arduino
MIT License
131 stars 19 forks source link

Wrong Time when bootup, for few seconds #6

Closed cheise closed 1 year ago

cheise commented 1 year ago

https://github.com/Montecri/GPSTimeServer/blob/b72ee8c58b891f41e3a836fae0de9ad482129ad0/src/main.cpp#L385

That is implausible, why greater than 3000. So there is wrong time for a few seconds when booting up!

if (age < 1000) is the better way, the issue is gone. ;)

cu

Montecri commented 1 year ago

Good catch! Will fix it today Thank you!

Montecri commented 1 year ago

Hi @mmarkin !

@cheise suggestion above makes sense. I've updated the main tree. Please feel free to do the same on the Dual Display tree.

Thanks & Regards,

Montecri commented 1 year ago

Fixed as of today.