[wpiutil] Zero out roborio system timestamp (#6042)

There was also an issue where the clock zero offset would be incorrect due to the system time updating. This solves that issue for the Rio.
This commit is contained in:
Thad House
2023-12-13 15:20:24 -08:00
committed by GitHub
parent d9b504bc84
commit 7c8b7a97ad

View File

@@ -267,7 +267,7 @@ uint64_t wpi::Now() {
// Same code as HAL_GetFPGATime()
if (!hmbInitialized.test()) {
if (nowUseDefaultOnFailure.test()) {
return (now_impl.load())();
return timestamp() - offset_val;
} else {
fmt::print(
stderr,