mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-28 02:11:43 +00:00
Fixes initialization when not using the provided main (#1085)
Helpful for simulation, which might not use our main.
This commit is contained in:
committed by
Peter Johnson
parent
381c25c573
commit
86c1f8ae50
@@ -185,6 +185,7 @@ public class DriverStation implements RobotState.Interface {
|
||||
* variable.
|
||||
*/
|
||||
private DriverStation() {
|
||||
HAL.initialize(500, 0);
|
||||
m_waitForDataCount = 0;
|
||||
m_waitForDataMutex = new ReentrantLock();
|
||||
m_waitForDataCond = m_waitForDataMutex.newCondition();
|
||||
|
||||
Reference in New Issue
Block a user