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
This commit is contained in:
Thomas Basler 2024-01-18 21:21:40 +01:00
parent ce978cb0f5
commit 149444decb

View File

@ -390,7 +390,7 @@ std::vector<uint8_t> GridProfileParser::getRawData() const
{ {
std::vector<uint8_t> ret; std::vector<uint8_t> ret;
HOY_SEMAPHORE_TAKE(); 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]); ret.push_back(_payloadGridProfile[i]);
} }
HOY_SEMAPHORE_GIVE(); HOY_SEMAPHORE_GIVE();