[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [gpsd-users] Maybe beating a dead horse: Week number rollover

From: Charles Curley
Subject: Re: [gpsd-users] Maybe beating a dead horse: Week number rollover
Date: Sat, 10 Nov 2018 10:03:14 -0700

On Sat, 10 Nov 2018 09:33:54 -0500
Adam Heller <address@hidden> wrote:

> So I'm guessing I'll have to do the week number calculation manually?
> Hopefully time isn't going to be going backwards any time soon, maybe
> I can hard code in the current build year.  I think that's similar to
> the solution / example code Trimble supplies.

Rather than hard code it into gpsd (with its maintenance problems), how
about a separate script that sets the RTC to something close to
reasonable, which would run prior to gpsd?

And once gpsd is running and getting good time from the receiver,
another script could then update the RTC.

This should be easier to maintain. Also, being a more general solution,
if you were kind enough to make it available, it would solve the same
problem for others.

"When we talk of civilization, we are too apt to limit the meaning of
the word to its mere embellishments, such as arts and sciences; but
the true distinction between it and barbarism is, that the one
presents a state of society under the protection of just and
well-administered law, and the other is left to the chance government
of brute force."
- The Rev. James White, Eighteen Christian Centuries, 1889
Key fingerprint = CE5C 6645 A45A 64E4 94C0  809C FFF6 4C48 4ECD DFDB

reply via email to

[Prev in Thread] Current Thread [Next in Thread]