important bugfix for i2c device com IF

This commit is contained in:
Robin Müller 2022-10-20 14:24:03 +02:00
parent d592f1ecbc
commit 77b1a85b47

View File

@ -214,7 +214,7 @@ ReturnValue_t I2cComIF::readReceivedMessage(CookieIF* cookie, uint8_t** buffer,
}
*buffer = i2cDeviceMapIter->second.replyBuffer.data();
*size = i2cDeviceMapIter->second.replyLen;
i2cDeviceMapIter->second.replyLen = 0;
return returnvalue::OK;
}