From c9f2cb2b0b32aac8b8a2c925c0bb2595fe9d68ae Mon Sep 17 00:00:00 2001 From: Adrian Bowyer Date: Tue, 19 Nov 2013 21:57:59 +0000 Subject: [PATCH] Removed tiny buggette in the heat timing code. --- Heat.cpp | 2 +- Move.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Heat.cpp b/Heat.cpp index e34bdb3..0533960 100644 --- a/Heat.cpp +++ b/Heat.cpp @@ -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; diff --git a/Move.cpp b/Move.cpp index 17df937..a02bfb8 100644 --- a/Move.cpp +++ b/Move.cpp @@ -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;