Skip to content

fix Time::SetWnoTow() and Time::SetUtcTime() handling for negative values, add unittests#185

Merged
flipflip8952 merged 1 commit intomainfrom
fix/setwnotow
Jan 26, 2026
Merged

fix Time::SetWnoTow() and Time::SetUtcTime() handling for negative values, add unittests#185
flipflip8952 merged 1 commit intomainfrom
fix/setwnotow

Conversation

@flipflip8952
Copy link
Contributor

While negative WnoTow::tow_ or UtcTime::sec_ isn't really a valid time, it is handy to support handling these.
For example, when reading time info from GNSS receiver we may get a slightly negative UTC sec (for example UBX-NAV-PVT.sec = 0 and .nano < 0).

@flipflip8952 flipflip8952 merged commit 51377cb into main Jan 26, 2026
6 checks passed
@flipflip8952 flipflip8952 deleted the fix/setwnotow branch January 26, 2026 07:23
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.

1 participant