jomjol 5 년 전
부모
커밋
08ab034c7a
2개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      code/lib/jomjol_flowcontroll/ClassFlowPostProcessing.cpp
  2. BIN
      firmware/firmware.bin

+ 2 - 0
code/lib/jomjol_flowcontroll/ClassFlowPostProcessing.cpp

@@ -284,6 +284,7 @@ bool ClassFlowPostProcessing::doFlow(string zwtime)
     {
     {
         error = "Negative Rate - Returned old value - read value: " + zwvalue;
         error = "Negative Rate - Returned old value - read value: " + zwvalue;
         Value = PreValue;
         Value = PreValue;
+        stream.str("");
         stream << std::fixed << std::setprecision(AnzahlNachkomma) << Value;
         stream << std::fixed << std::setprecision(AnzahlNachkomma) << Value;
         zwvalue = stream.str();
         zwvalue = stream.str();
     }
     }
@@ -292,6 +293,7 @@ bool ClassFlowPostProcessing::doFlow(string zwtime)
     {
     {
         error = "Rate too high - Returned old value - read value: " + zwvalue;
         error = "Rate too high - Returned old value - read value: " + zwvalue;
         Value = PreValue;
         Value = PreValue;
+        stream.str("");
         stream << std::fixed << std::setprecision(AnzahlNachkomma) << Value;
         stream << std::fixed << std::setprecision(AnzahlNachkomma) << Value;
         zwvalue = stream.str();
         zwvalue = stream.str();
     }
     }

BIN
firmware/firmware.bin