|
|
@@ -223,14 +223,19 @@ bool ClassFlowPostProcessing::LoadPreValue(void) {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- if (fgets(zw, sizeof(zw), pFile.get()) == NULL) {
|
|
|
+ std::string nextLine;
|
|
|
+ bool haveNextLine = false;
|
|
|
+ while (fgets(zw, sizeof(zw), pFile.get()) != NULL) {
|
|
|
+ nextLine = trim(std::string(zw));
|
|
|
+ if (!nextLine.empty()) {
|
|
|
+ haveNextLine = true;
|
|
|
+ break;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if (!haveNextLine) {
|
|
|
break;
|
|
|
}
|
|
|
|
|
|
- const std::string nextLine = trim(std::string(zw));
|
|
|
- if (nextLine.empty()) {
|
|
|
- continue;
|
|
|
- }
|
|
|
ESP_LOGD(TAG, "Read line Prevalue.ini: %s", zw);
|
|
|
splitted = HelperZerlegeZeile(nextLine, "\t");
|
|
|
}
|