[hal] Remove DS Data timeout (#8083)

This commit is contained in:
Thad House
2025-07-15 21:18:17 -07:00
committed by GitHub
parent 1530fccbd0
commit 24e2d2d676

View File

@@ -608,13 +608,14 @@ HAL_Bool HAL_RefreshDSData(void) {
int64_t dataTime{0};
bool dataValid = systemServerDs->GetLastControlData(&newestData, &dataTime);
auto now = wpi::Now();
auto delta = now - dataTime;
// auto now = wpi::Now();
// auto delta = now - dataTime;
bool updatedData = false;
// Data newer then 125ms, and we have a DS connected
if (dataValid && delta < 125000 && newestData.ControlWord.DsConnected) {
// TODO add a new way to detect if mrccomm has stopped.
if (dataValid /* && delta < 125000 */ && newestData.ControlWord.DsConnected) {
// Update the cache.
cacheToUpdate->Update(newestData);
updatedData = true;