From 3f659ccf7d1d3d0bb9fa3a6f7038d5156b7e9a10 Mon Sep 17 00:00:00 2001 From: Frank Haverland Date: Sun, 18 Sep 2022 17:01:32 +0200 Subject: [PATCH] Revert change in 11.3.1 on checkDigitConsistency (Issue #1028 and #1029) --- .../components/jomjol_flowcontroll/ClassFlowPostProcessing.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/code/components/jomjol_flowcontroll/ClassFlowPostProcessing.cpp b/code/components/jomjol_flowcontroll/ClassFlowPostProcessing.cpp index 73feef3e..c2c3e47a 100644 --- a/code/components/jomjol_flowcontroll/ClassFlowPostProcessing.cpp +++ b/code/components/jomjol_flowcontroll/ClassFlowPostProcessing.cpp @@ -922,7 +922,6 @@ float ClassFlowPostProcessing::checkDigitConsistency(double input, int _decilams printf("checkDigitConsistency: pot=%d, decimalshift=%d\n", pot, _decilamshift); #endif pot_max = ((int) log10(input)) + 1; - float not_checked_input = floorf(input * pow(10, pot)) / pow(10, pot); #ifdef SERIAL_DEBUG printf("checkDigitConsistency: not_checked_input=%f\n", not_checked_input); #endif @@ -960,7 +959,7 @@ float ClassFlowPostProcessing::checkDigitConsistency(double input, int _decilams pot++; } - return not_checked_input + input; + return input; } string ClassFlowPostProcessing::getReadoutRate(int _number)