Skip to content

Datetime from gps rpi#2135

Merged
bdbcat merged 2 commits intoOpenCPN:masterfrom
RooieDirk:datetime_from_gps_rpi
Feb 24, 2021
Merged

Datetime from gps rpi#2135
bdbcat merged 2 commits intoOpenCPN:masterfrom
RooieDirk:datetime_from_gps_rpi

Conversation

@RooieDirk
Copy link
Copy Markdown
Contributor

There is an option (hidden) for setting the system time from GPS already available in O. However to prevent loading bullshit times from some devices it has a build in limit of 2 hours difference between system hardware clock and GPS time.
This makes it not useable for systems without system hardware clock (eg Raspberry), where this function is most needed.
This patch adds a check for an hw clock onboard, and if not forget about the 2 hours limit.
It is linux only, but afaik all small non clock boards are running linux.

@bdbcat bdbcat merged commit 23e337b into OpenCPN:master Feb 24, 2021
@RooieDirk RooieDirk deleted the datetime_from_gps_rpi branch February 20, 2022 08:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants