]> the.earth.li Git - esp8266-clock.git/commit
Switch NTP to update hourly rather than only wifi connect
authorJonathan McDowell <noodles@earth.li>
Sun, 27 Jan 2019 11:06:30 +0000 (11:06 +0000)
committerJonathan McDowell <noodles@earth.li>
Sun, 27 Jan 2019 11:06:30 +0000 (11:06 +0000)
commitf8ec77a59ae23e61eeb657f4101fbba360fbcddb
treeba59f220c290578b694c1ddb68d9ed90c5ecb8c4
parent8ecc02cb462cfd4fd0b7510922e7063b65c5795b
Switch NTP to update hourly rather than only wifi connect

The ESP8266 clock seems to drift quite badly so a single NTP sync when
we connect to wifi isn't sufficient to keep our time accurate. Set up a
timer to resync hourly.
user_main.c