something is wrong

This commit is contained in:
Robin Müller 2022-10-04 21:17:35 +02:00
parent 49747fc8a4
commit d1630cdc4c
No known key found for this signature in database
GPG Key ID: 71B58F8A3CDFA9AC

View File

@ -68,7 +68,7 @@ ReturnValue_t DleParser::parseRingBuf(size_t& readSize) {
ctx.setType(ContextType::PACKET_FOUND);
ctx.decodedPacket.first = decodedBuf.first;
ctx.decodedPacket.second = decodedLen;
readSize = vectorIdx + 1;
readSize = ++vectorIdx;
return returnvalue::OK;
} else {
// invalid packet, skip.