Skip to content

Commit

Permalink
Fix: Gridprofile dump contained the whole buffer instead of the actua…
Browse files Browse the repository at this point in the history
…l length

As a result, a lot of zeros where placed at the end of the dump
  • Loading branch information
tbnobody committed Jan 18, 2024
1 parent ce978cb commit 149444d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Hoymiles/src/parser/GridProfileParser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -390,7 +390,7 @@ std::vector<uint8_t> GridProfileParser::getRawData() const
{
std::vector<uint8_t> 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();
Expand Down

0 comments on commit 149444d

Please sign in to comment.