From 149444decb1a7494695cf84c572fab7389e451d9 Mon Sep 17 00:00:00 2001 From: Thomas Basler Date: Thu, 18 Jan 2024 21:21:40 +0100 Subject: [PATCH] Fix: Gridprofile dump contained the whole buffer instead of the actual length As a result, a lot of zeros where placed at the end of the dump --- lib/Hoymiles/src/parser/GridProfileParser.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Hoymiles/src/parser/GridProfileParser.cpp b/lib/Hoymiles/src/parser/GridProfileParser.cpp index b6c1573b..37cb1d4a 100644 --- a/lib/Hoymiles/src/parser/GridProfileParser.cpp +++ b/lib/Hoymiles/src/parser/GridProfileParser.cpp @@ -390,7 +390,7 @@ std::vector GridProfileParser::getRawData() const { std::vector ret; HOY_SEMAPHORE_TAKE(); - for (uint8_t i = 0; i < GRID_PROFILE_SIZE; i++) { + for (uint8_t i = 0; i < _gridProfileLength; i++) { ret.push_back(_payloadGridProfile[i]); } HOY_SEMAPHORE_GIVE();