This commit is contained in:
jomjol
2020-08-16 20:22:14 +02:00
parent c7aa0f34ca
commit f30dc8d7cf
4 changed files with 14 additions and 19 deletions

View File

@@ -244,13 +244,14 @@ bool ClassFlowPostProcessing::doFlow(string zwtime)
if (isanalog)
ReturnValue = ReturnValue + analog;
ReturnRawValue = ReturnValue;
if ((findDelimiterPos(ReturnValue, "N") == std::string::npos) && (ReturnValue.length() > 0))
{
while ((ReturnValue.length() > 1) && (ReturnValue[0] == '0'))
{
ReturnValue.erase(0, 1);
}
ReturnRawValue = ReturnValue;
Value = std::stof(ReturnValue);
SavePreValue(Value, zwtime);
}