mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-19 00:41:43 +00:00
[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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user