Skip to content

Commit 6c785ac

Browse files
author
GatCode
committed
Add negative number possibility
1 parent 8e3b77a commit 6c785ac

1 file changed

Lines changed: 0 additions & 6 deletions

File tree

src/ScaleStabilizer.cpp

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -124,12 +124,6 @@ double ScaleStabilizer::getStablilizedReading(double displayResolution, int deci
124124
double codeValue = getAvg();
125125
double outputValue = codeValue;
126126

127-
// remove negative numbers and set to 0 if close to 0
128-
if (outputValue < 0.5)
129-
{
130-
outputValue = 0.0;
131-
}
132-
133127
// round to given decimal places
134128
float scale = pow(10, decimalPlaces);
135129
outputValue = round(outputValue * scale) / scale;

0 commit comments

Comments
 (0)