Fix Timer.hasPeriodPassed().

It was incorrectly using seconds instead of milliseconds.

Change-Id: Iecd2802c548caee4a5185f00a2b785143d6b1b16
This commit is contained in:
Peter Johnson
2015-01-11 01:55:33 -08:00
parent ae9a7d19f1
commit 9f04b79580

View File

@@ -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;