Prepare v4.1.1

This commit is contained in:
jomjol
2020-12-02 21:53:44 +01:00
parent f6f3e2377e
commit c9c02daff7
8 changed files with 19 additions and 18 deletions

View File

@@ -25,10 +25,11 @@ A 3d-printable housing can be found here: https://www.thingiverse.com/thing:4571
**General remark:** Beside the `firmware.bin`, typically also the content of `/html` needs to be updated! **General remark:** Beside the `firmware.bin`, typically also the content of `/html` needs to be updated!
##### Rolling - (2020-12-02) ##### 4.1.1 Configuration editor - (2020-12-02)
* Bug fixing: internal improvement of file handling (reduce not responding) * Bug fixing: internal improvement of file handling (reduce not responding)
* based on v4.1.0
##### 4.1.0 Configuration editor - (2020-11-30) ##### 4.1.0 Configuration editor - (2020-11-30)

View File

@@ -127,6 +127,5 @@ bool ClassFlowMQTT::doFlow(string zwtime)
OldValue = result; OldValue = result;
return true; return true;
} }

View File

@@ -4,6 +4,7 @@
#include "ClassFlowAnalog.h" #include "ClassFlowAnalog.h"
#include "ClassFlowDigit.h" #include "ClassFlowDigit.h"
#include "ClassFlowMakeImage.h" #include "ClassFlowMakeImage.h"
#include "ClassLogFile.h"
#include <iomanip> #include <iomanip>
#include <sstream> #include <sstream>
@@ -42,6 +43,7 @@ bool ClassFlowPostProcessing::LoadPreValue(void)
zwtime = trim(std::string(zw)); zwtime = trim(std::string(zw));
fgets(zw, 1024, pFile); fgets(zw, 1024, pFile);
fclose(pFile);
printf("%s", zw); printf("%s", zw);
zwvalue = trim(std::string(zw)); zwvalue = trim(std::string(zw));
PreValue = stof(zwvalue.c_str()); PreValue = stof(zwvalue.c_str());
@@ -103,13 +105,11 @@ void ClassFlowPostProcessing::SavePreValue(float value, string zwtime)
timeinfo = localtime(&rawtime); timeinfo = localtime(&rawtime);
strftime(buffer, 80, "%Y-%m-%d_%H-%M-%S", timeinfo); strftime(buffer, 80, "%Y-%m-%d_%H-%M-%S", timeinfo);
zwtime = std::string(buffer); zwtime = std::string(buffer);
} }
fputs(zwtime.c_str(), pFile); fputs(zwtime.c_str(), pFile);
fputs("\n", pFile); fputs("\n", pFile);
fputs(to_string(value).c_str(), pFile); fputs(to_string(value).c_str(), pFile);
fputs("\n", pFile); fputs("\n", pFile);
@@ -269,6 +269,7 @@ bool ClassFlowPostProcessing::doFlow(string zwtime)
ErrorMessageText = ""; ErrorMessageText = "";
for (int i = 0; i < ListFlowControll->size(); ++i) for (int i = 0; i < ListFlowControll->size(); ++i)
{ {
if (((*ListFlowControll)[i])->name().compare("ClassFlowMakeImage") == 0) if (((*ListFlowControll)[i])->name().compare("ClassFlowMakeImage") == 0)
@@ -312,6 +313,7 @@ bool ClassFlowPostProcessing::doFlow(string zwtime)
ReturnRawValue = ShiftDecimal(ReturnRawValue, DecimalShift); ReturnRawValue = ShiftDecimal(ReturnRawValue, DecimalShift);
if (!PreValueUse || !PreValueOkay) if (!PreValueUse || !PreValueOkay)
{ {
ReturnValue = ReturnRawValue; ReturnValue = ReturnRawValue;
@@ -336,7 +338,6 @@ bool ClassFlowPostProcessing::doFlow(string zwtime)
zw = ErsetzteN(ReturnRawValue); zw = ErsetzteN(ReturnRawValue);
Value = std::stof(zw); Value = std::stof(zw);
if (checkDigitIncreaseConsistency) if (checkDigitIncreaseConsistency)
{ {
@@ -367,10 +368,10 @@ bool ClassFlowPostProcessing::doFlow(string zwtime)
if (ErrorMessageText.length() == 0) if (ErrorMessageText.length() == 0)
{ {
PreValue = Value; PreValue = Value;
SavePreValue(Value, zwtime); SavePreValue(Value, zwtime);
} }
return true; return true;
} }

View File

@@ -1,4 +1,4 @@
const char* GIT_REV="ed3226e"; const char* GIT_REV="f6f3e23";
const char* GIT_TAG=""; const char* GIT_TAG="";
const char* GIT_BRANCH="rolling"; const char* GIT_BRANCH="rolling";
const char* BUILD_TIME="2020-12-02 07:33"; const char* BUILD_TIME="2020-12-02 21:50";

View File

@@ -1,4 +1,4 @@
const char* GIT_REV="ed3226e"; const char* GIT_REV="f6f3e23";
const char* GIT_TAG=""; const char* GIT_TAG="";
const char* GIT_BRANCH="rolling"; const char* GIT_BRANCH="rolling";
const char* BUILD_TIME="2020-12-02 07:33"; const char* BUILD_TIME="2020-12-02 21:50";

Binary file not shown.

Binary file not shown.

Binary file not shown.