mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-24 01:31:46 +00:00
Fix Timer.hasPeriodPassed().
It was incorrectly using seconds instead of milliseconds. Change-Id: Iecd2802c548caee4a5185f00a2b785143d6b1b16
This commit is contained in:
@@ -133,7 +133,7 @@ public class HardwareTimer implements Timer.StaticInterface {
|
||||
if (get() > period) {
|
||||
// Advance the start time by the period.
|
||||
// Don't set it to the current time... we want to avoid drift.
|
||||
m_startTime += period;
|
||||
m_startTime += period * 1000;
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user