mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-21 01:01:43 +00:00
Only return lower 32 bits of FPGA time (#741)
Works around an NI bug in image 10.
This commit is contained in:
committed by
Peter Johnson
parent
e5e6d6a193
commit
f56ec10bcf
@@ -219,6 +219,9 @@ uint64_t HAL_GetFPGATime(int32_t* status) {
|
||||
*status = NiFpga_Status_ResourceNotInitialized;
|
||||
return 0;
|
||||
}
|
||||
// Because of a bug in FPGA image 10, just return the lower 32 bits of time.
|
||||
return global->readLocalTime(status);
|
||||
|
||||
uint64_t upper1 = global->readLocalTimeUpper(status);
|
||||
uint32_t lower = global->readLocalTime(status);
|
||||
uint64_t upper2 = global->readLocalTimeUpper(status);
|
||||
|
||||
Reference in New Issue
Block a user