From c7d235b367575d4b536da2d3b8af79a4cac4559f Mon Sep 17 00:00:00 2001 From: Daniel Ekman Date: Sat, 18 Dec 2021 15:37:30 +0100 Subject: [PATCH 1/2] Assignment error in meter types --- src/IEC6205621.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/IEC6205621.cpp b/src/IEC6205621.cpp index 3ba944a3..26f06413 100644 --- a/src/IEC6205621.cpp +++ b/src/IEC6205621.cpp @@ -7,7 +7,7 @@ IEC6205621::IEC6205621(String payload) { lastUpdateMillis = millis(); listId = payload.substring(payload.startsWith("/") ? 1 : 0, payload.indexOf("\n")); if(listId.startsWith("ADN")) { - meterType == AmsTypeAidon; + meterType = AmsTypeAidon; listId = listId.substring(0,4); } else if(listId.startsWith("KFM")) { meterType = AmsTypeKaifa; From 2a1b5a5f6d0507c609fc2d0c603dc07a01dc9add Mon Sep 17 00:00:00 2001 From: Daniel Ekman Date: Sat, 18 Dec 2021 17:10:53 +0100 Subject: [PATCH 2/2] Change time.h to timelib.h for 32bit to compile --- src/entsoe/EntsoeApi.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/entsoe/EntsoeApi.h b/src/entsoe/EntsoeApi.h index 6830efd2..885c8471 100644 --- a/src/entsoe/EntsoeApi.h +++ b/src/entsoe/EntsoeApi.h @@ -1,7 +1,7 @@ #ifndef _ENTSOEAPI_H #define _ENTSOEAPI_H -#include "time.h" +#include "TimeLib.h" #include "Timezone.h" #include "RemoteDebug.h" #include "EntsoeA44Parser.h"