From 169cdd090853084f9cbf8784248c601434854531 Mon Sep 17 00:00:00 2001 From: Brett Beauregard Date: Thu, 19 Jul 2012 06:33:34 -0400 Subject: [PATCH] changed SampleTime datatype there was a "comparison between signed and unsigned integer expressions" warning when the library compiled. I cannot think of any reason why this have caused a problem, but this fix gets rid of it anyway. --- PID_v1/PID_v1.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PID_v1/PID_v1.h b/PID_v1/PID_v1.h index 2b3874f..ef3ea4d 100644 --- a/PID_v1/PID_v1.h +++ b/PID_v1/PID_v1.h @@ -72,7 +72,7 @@ class PID unsigned long lastTime; double ITerm, lastInput; - int SampleTime; + unsigned long SampleTime; double outMin, outMax; bool inAuto; };