Skip to content

Commit 169cdd0

Browse files
committed
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.
1 parent 20199df commit 169cdd0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

PID_v1/PID_v1.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ class PID
7272
unsigned long lastTime;
7373
double ITerm, lastInput;
7474

75-
int SampleTime;
75+
unsigned long SampleTime;
7676
double outMin, outMax;
7777
bool inAuto;
7878
};

0 commit comments

Comments
 (0)