important bugfix for i2c device com IF

This commit is contained in:
Robin Müller 2022-10-20 14:24:03 +02:00
parent 692be9df8d
commit 0c5c2f6c4f
No known key found for this signature in database
GPG Key ID: 11D4952C8CCEF814

View File

@ -216,7 +216,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;
}