mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-19 00:41:43 +00:00
committed by
Peter Johnson
parent
761bc3ef85
commit
7112add67f
@@ -25,7 +25,7 @@ void TimedRobot::StartCompetition() {
|
||||
// Tell the DS that the robot is ready to be enabled
|
||||
HAL_ObserveUserProgramStarting();
|
||||
|
||||
m_expirationTime = Timer::GetFPGATimestamp() + m_period;
|
||||
m_expirationTime = units::second_t{Timer::GetFPGATimestamp()} + m_period;
|
||||
UpdateAlarm();
|
||||
|
||||
// Loop forever, calling the appropriate mode-dependent function
|
||||
|
||||
Reference in New Issue
Block a user