diff --git a/README.md b/README.md index d29add21..11e62a0f 100644 --- a/README.md +++ b/README.md @@ -47,6 +47,11 @@ In other cases you can contact the developer via email: size(); ++i) { @@ -384,6 +380,13 @@ bool ClassFlowPostProcessing::ReadParameter(FILE* pfile, string& aktparamgraph) if (toUpper(zerlegt[1]) == "TRUE") ErrorMessage = true; } + if ((toUpper(_param) == "IGNORELEADINGNAN") && (zerlegt.size() > 1)) + { + if (toUpper(zerlegt[1]) == "TRUE") + IgnoreLeadingNaN = true; + } + + if ((toUpper(_param) == "PREVALUEAGESTARTUP") && (zerlegt.size() > 1)) { PreValueAgeStartup = std::stoi(zerlegt[1]); @@ -563,7 +566,18 @@ bool ClassFlowPostProcessing::doFlow(string zwtime) if (NUMBERS[j]->analog_roi) NUMBERS[j]->ReturnRawValue = NUMBERS[j]->ReturnRawValue + flowAnalog->getReadout(j); - NUMBERS[j]->ReturnRawValue = ShiftDecimal(NUMBERS[j]->ReturnRawValue, NUMBERS[j]->DecimalShift); + NUMBERS[j]->ReturnRawValue = ShiftDecimal(NUMBERS[j]->ReturnRawValue, NUMBERS[j]->DecimalShift); + + +///////////////// SPEZIALFALL für User Gustl /////////////////////////////////////////////////////// + if (IgnoreLeadingNaN) + { + while ((NUMBERS[j]->ReturnValue.length() > 1) && (NUMBERS[j]->ReturnValue[0] == 'N')) + { + NUMBERS[j]->ReturnValue.erase(0, 1); + } + } +//////////////////////////////////////////////////////////////////////////////////////////////////// rohwert = NUMBERS[j]->ReturnRawValue; diff --git a/code/components/jomjol_flowcontroll/ClassFlowPostProcessing.h b/code/components/jomjol_flowcontroll/ClassFlowPostProcessing.h index 14d3ed5f..2d0d02dd 100644 --- a/code/components/jomjol_flowcontroll/ClassFlowPostProcessing.h +++ b/code/components/jomjol_flowcontroll/ClassFlowPostProcessing.h @@ -9,7 +9,6 @@ struct NumberPost { -// int PreValueAgeStartup; float MaxRateValue; bool useMaxRateValue; bool ErrorMessage; @@ -30,14 +29,10 @@ struct NumberPost { int AnzahlDigital; int DecimalShift; int Nachkomma; -// ClassFlowAnalog* ANALOG; -// ClassFlowDigit* DIGIT; digit *digit_roi; analog *analog_roi; - - string name; }; @@ -53,6 +48,7 @@ protected: int PreValueAgeStartup; bool ErrorMessage; + bool IgnoreLeadingNaN; // SPEZIALFALL für User Gustl ClassFlowAnalog* flowAnalog; diff --git a/code/main/version.cpp b/code/main/version.cpp index 78ad2317..978341da 100644 --- a/code/main/version.cpp +++ b/code/main/version.cpp @@ -1,4 +1,4 @@ -const char* GIT_REV="7ae08e5"; +const char* GIT_REV="eb02e0a"; const char* GIT_TAG=""; -const char* GIT_BRANCH="master"; -const char* BUILD_TIME="2021-08-24 08:35"; \ No newline at end of file +const char* GIT_BRANCH="rolling"; +const char* BUILD_TIME="2021-08-30 21:07"; \ No newline at end of file diff --git a/code/version.cpp b/code/version.cpp index 78ad2317..978341da 100644 --- a/code/version.cpp +++ b/code/version.cpp @@ -1,4 +1,4 @@ -const char* GIT_REV="7ae08e5"; +const char* GIT_REV="eb02e0a"; const char* GIT_TAG=""; -const char* GIT_BRANCH="master"; -const char* BUILD_TIME="2021-08-24 08:35"; \ No newline at end of file +const char* GIT_BRANCH="rolling"; +const char* BUILD_TIME="2021-08-30 21:07"; \ No newline at end of file diff --git a/firmware/bootloader.bin b/firmware/bootloader.bin index 104b52fa..728a889c 100644 Binary files a/firmware/bootloader.bin and b/firmware/bootloader.bin differ diff --git a/firmware/firmware.bin b/firmware/firmware.bin index df4b2098..6f7d49e5 100644 Binary files a/firmware/firmware.bin and b/firmware/firmware.bin differ