Removed tiny buggette in the heat timing code.

This commit is contained in:
Adrian Bowyer 2013-11-19 21:57:59 +00:00
parent c33d1ac723
commit c9f2cb2b0b
2 changed files with 2 additions and 2 deletions

View file

@ -49,7 +49,7 @@ void Heat::Spin()
if(!active)
return;
unsigned long t = platform->Time();
float t = platform->Time();
if(t - lastTime < platform->HeatSampleTime())
return;
lastTime = t;

View file

@ -661,7 +661,7 @@ void Move::InterruptTime()
float v = 50;
lookAheadDDA->Init(a, b, u, v);
lookAheadDDA->Start(false);
unsigned long t = platform->Time();
float t = platform->Time();
for(long i = 0; i < 100000; i++)
lookAheadDDA->Step(false);
t = platform->Time() - t;