From d1630cdc4c3fc801934f1e394efa80e898f8031b Mon Sep 17 00:00:00 2001 From: Robin Mueller Date: Tue, 4 Oct 2022 21:17:35 +0200 Subject: [PATCH] something is wrong --- src/fsfw/globalfunctions/DleParser.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/fsfw/globalfunctions/DleParser.cpp b/src/fsfw/globalfunctions/DleParser.cpp index b992debd..88d1dfb2 100644 --- a/src/fsfw/globalfunctions/DleParser.cpp +++ b/src/fsfw/globalfunctions/DleParser.cpp @@ -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.