aboutsummaryrefslogtreecommitdiff
path: root/ntp_client.c
AgeCommit message (Collapse)Author
2023-09-17Add comments about mysterious constantsHEADmainThomas White
2023-03-03Un-set ntp_ok if there's an errorThomas White
2023-03-03Re-request NTP time periodicallyThomas White
Note that the terms of service for pool.ntp.org require that we not synchronise unreasonably often, and not at a regular time such as "top of the hour".
2023-03-03Completely overhaul the codeThomas White
This gets rid of a lot of nasty callback stuff, and compartmentalises the NTP code much better.
2023-03-02Use pico_cyw43_arch_lwip_pollThomas White
So little can be done in lwIP callbacks with the background driver, we end up polling anyway. So we might as well poll the driver directly, and be able to do more in the callbacks.
2023-02-20Move UTC offset to headerThomas White
2023-02-18Synchronise using NTPThomas White