Merge pull request #1233 from haverland/rolling

fix test cases running in stackoverlfow
This commit is contained in:
jomjol
2022-10-27 22:05:27 +02:00
committed by GitHub
9 changed files with 35 additions and 21 deletions

View File

@@ -866,8 +866,6 @@ bool ClassFlowPostProcessing::doFlow(string zwtime)
void ClassFlowPostProcessing::WriteDataLog(int _index)
{
LogFile.WriteToFile(ESP_LOG_WARN, "Data file writing temporarily disabled, see https://github.com/jomjol/AI-on-the-edge-device/issues/1225");
return;
string analog = "";
string digital = "";
string timezw = "";
@@ -875,7 +873,7 @@ void ClassFlowPostProcessing::WriteDataLog(int _index)
struct tm* timeinfo = localtime(&NUMBERS[_index]->lastvalue);
strftime(buffer, 80, PREVALUE_TIME_FORMAT_OUTPUT, timeinfo);
timezw = std::string(buffer);
if (flowAnalog)
analog = flowAnalog->getReadoutRawString(_index);
if (flowDigit)