nerves-time / nerves_time

Keep time in sync on Nerves devices
Other
23 stars 13 forks source link

Support a hardware RTC #3

Closed fhunleth closed 4 years ago

fhunleth commented 6 years ago

The idea here is that if a hardware RTC exists, its time should be used in preference to the build time and file timestamp methods before NTP sync's. Additionally, the hardware RTC needs to be updated by NTP periodically. The Busybox default script updates it when the NTP clock is marked as stratum <= 4 with a poll_interval >= 128. This seems reasonable to duplicate.

fhunleth commented 4 years ago

Fixed in #51.