From b8c1168687221d026ee116c5690741a373c7a081 Mon Sep 17 00:00:00 2001 From: Thomas Basler Date: Sun, 3 Mar 2024 16:35:34 +0100 Subject: [PATCH] Fix: Exclude hardware part number 124097 from valid part numbers. This triggers a re-fetch of the hardware information. Especially 124097 seems to be a wrong read-out. --- lib/Hoymiles/src/parser/DevInfoParser.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Hoymiles/src/parser/DevInfoParser.cpp b/lib/Hoymiles/src/parser/DevInfoParser.cpp index b2b30a2..08970ff 100644 --- a/lib/Hoymiles/src/parser/DevInfoParser.cpp +++ b/lib/Hoymiles/src/parser/DevInfoParser.cpp @@ -200,7 +200,7 @@ bool DevInfoParser::containsValidData() const struct tm info; localtime_r(&t, &info); - return info.tm_year > (2016 - 1900); + return info.tm_year > (2016 - 1900) || getHwPartNumber() == 124097; } uint8_t DevInfoParser::getDevIdx() const