mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-28 02:11:43 +00:00
Fixes error in driver station control word cache (#222)
This commit is contained in:
committed by
Peter Johnson
parent
2ecb939b35
commit
dbe03afb9a
@@ -821,7 +821,7 @@ public class DriverStation implements RobotState.Interface {
|
||||
synchronized (m_controlWordMutex) {
|
||||
if ((now - m_lastControlWordUpdate > 50) || force) {
|
||||
HAL.getControlWord(m_controlWordCache);
|
||||
now = m_lastControlWordUpdate;
|
||||
m_lastControlWordUpdate = now;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user