nerves-time / nerves_time

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

Add process to await system time adjustment up to configurable limit #98

Closed LostKobrakai closed 2 years ago

jjcarstens commented 2 years ago

Thanks @LostKobrakai ! I'm doing some RTC work today and I'll try to test this out while I'm in there

LostKobrakai commented 2 years ago

Yeah. We start :nerves_time with shoehorn and essentially want it to attempt to successfully fetch the current time from the RTC for a predefined timeframe before falling back to the current async initialization behaviour. This should reduce the likelyhood of event with incorrect timestamps being written by the system.

LostKobrakai commented 2 years ago

I've update the PR with the requested changes.