jomjol před 4 roky
rodič
revize
1bcaf09855

+ 3 - 2
README.md

@@ -47,11 +47,12 @@ In other cases you can contact the developer via email: <img src="https://raw.gi
 
 
 
 
 
 
-##### 8.0.3 - Multi Meter Support (2021-07-25)
+##### 8.0.4 - Multi Meter Support (2021-07-29)
 
 
+* NEW 8.0.4: bug fix: failed configuration after upgrade
 * NEW 8.0.3: bug fix: reboot during `config.ini` handling, html error
 * NEW 8.0.3: bug fix: reboot during `config.ini` handling, html error
 * NEW 8.0.2: saving roundes prevalue, bug fix html server
 * NEW 8.0.2: saving roundes prevalue, bug fix html server
-* NEW 8.0.1: bug fix html handling of parameter `FixedExposure` and `ImageSize`
+* NEW 8.0.1: bug fix: html handling of parameter `FixedExposure` and `ImageSize`
 * Dual / multi meter support (more than 1 number to be recognized)
 * Dual / multi meter support (more than 1 number to be recognized)
   This is implemented with the feature "number" on the ROI definition as well as selected options
   This is implemented with the feature "number" on the ROI definition as well as selected options
 * MQTT: standardization of the naming - including new topics (`json`,  `freeMem `, `uptime`)c
 * MQTT: standardization of the naming - including new topics (`json`,  `freeMem `, `uptime`)c

+ 14 - 5
code/components/jomjol_configfile/configFile.cpp

@@ -39,18 +39,27 @@ bool ConfigFile::GetNextParagraph(std::string& aktparamgraph, bool &disabled, bo
 bool ConfigFile::getNextLine(std::string *rt, bool &disabled, bool &eof)
 bool ConfigFile::getNextLine(std::string *rt, bool &disabled, bool &eof)
 {
 {
     eof = false;
     eof = false;
-	char zw[1024];
+	char zw[1024] = "";
 	if (pFile == NULL)
 	if (pFile == NULL)
 	{
 	{
 		*rt = "";
 		*rt = "";
 		return false;
 		return false;
 	}
 	}
-	fgets(zw, 1024, pFile);
-	printf("%s", zw);
-	if ((strlen(zw) == 0) && feof(pFile))
+
+	if (fgets(zw, 1024, pFile))
+	{
+		printf("%s", zw);
+		if ((strlen(zw) == 0) && feof(pFile))
+		{
+			*rt = "";
+			eof = true;
+			return false;
+		}
+	}
+	else
 	{
 	{
 		*rt = "";
 		*rt = "";
-        eof = true;
+		eof = true;
 		return false;
 		return false;
 	}
 	}
 	*rt = zw;
 	*rt = zw;

+ 2 - 0
code/components/jomjol_controlGPIO/server_GPIO.cpp

@@ -216,6 +216,7 @@ void GpioHandler::init()
         clear();
         clear();
     }
     }
     
     
+    
     ESP_LOGI(TAG_SERVERGPIO, "read GPIO config and init GPIO");
     ESP_LOGI(TAG_SERVERGPIO, "read GPIO config and init GPIO");
     if (!readConfig()) {
     if (!readConfig()) {
         clear();
         clear();
@@ -225,6 +226,7 @@ void GpioHandler::init()
         return;
         return;
     }
     }
 
 
+
     for(std::map<gpio_num_t, GpioPin*>::iterator it = gpioMap->begin(); it != gpioMap->end(); ++it) {
     for(std::map<gpio_num_t, GpioPin*>::iterator it = gpioMap->begin(); it != gpioMap->end(); ++it) {
         it->second->init();
         it->second->init();
     }
     }

+ 1 - 3
code/components/jomjol_flowcontroll/ClassFlow.cpp

@@ -130,11 +130,9 @@ bool ClassFlow::getNextLine(FILE* pfile, string *rt)
 	*rt = trim(*rt);
 	*rt = trim(*rt);
 	while ((zw[0] == ';' || zw[0] == '#' || (rt->size() == 0)) && !(zw[1] == '['))			// Kommentarzeilen (; oder #) und Leerzeilen überspringen, es sei denn es ist ein neuer auskommentierter Paragraph
 	while ((zw[0] == ';' || zw[0] == '#' || (rt->size() == 0)) && !(zw[1] == '['))			// Kommentarzeilen (; oder #) und Leerzeilen überspringen, es sei denn es ist ein neuer auskommentierter Paragraph
 	{
 	{
+		*rt = "";
 		if (!fgets(zw, 1024, pfile))
 		if (!fgets(zw, 1024, pfile))
-		{
-			*rt = "";
 			return false;
 			return false;
-		}
 		printf("%s", zw);		
 		printf("%s", zw);		
 		*rt = zw;
 		*rt = zw;
 		*rt = trim(*rt);
 		*rt = trim(*rt);

+ 6 - 3
code/components/jomjol_flowcontroll/ClassFlowControll.cpp

@@ -173,9 +173,12 @@ void ClassFlowControll::InitFlow(std::string config)
         }
         }
         else
         else
         {
         {
-            fgets(zw, 1024, pFile);
-            printf("%s", zw);
-            line = std::string(zw);
+            line = "";
+            if (fgets(zw, 1024, pFile) && !feof(pFile))
+                {
+                    printf("Read: %s", zw);
+                    line = std::string(zw);
+                }
         }
         }
     }
     }
 
 

+ 4 - 4
code/main/version.cpp

@@ -1,4 +1,4 @@
-const char* GIT_REV="ea72256";
-const char* GIT_TAG="";
-const char* GIT_BRANCH="master";
-const char* BUILD_TIME="2021-07-25 18:09";
+const char* GIT_REV="fa3842b";
+const char* GIT_TAG="v8.0.3";
+const char* GIT_BRANCH="rolling";
+const char* BUILD_TIME="2021-07-29 20:11";

+ 1 - 1
code/main/version.h

@@ -13,7 +13,7 @@ extern "C"
 #include "Helper.h"
 #include "Helper.h"
 #include <fstream>
 #include <fstream>
 
 
-const char* GIT_BASE_BRANCH = "master - v8.0.3 - 2021-07-25";
+const char* GIT_BASE_BRANCH = "master - v8.0.4 - 2021-07-29";
 
 
 
 
 const char* git_base_branch(void)
 const char* git_base_branch(void)

+ 4 - 4
code/version.cpp

@@ -1,4 +1,4 @@
-const char* GIT_REV="ea72256";
-const char* GIT_TAG="";
-const char* GIT_BRANCH="master";
-const char* BUILD_TIME="2021-07-25 18:09";
+const char* GIT_REV="fa3842b";
+const char* GIT_TAG="v8.0.3";
+const char* GIT_BRANCH="rolling";
+const char* BUILD_TIME="2021-07-29 20:11";

binární
firmware/bootloader.bin


binární
firmware/firmware.bin


binární
sd-card/config/dig1110s1q.tflite