delete old packet

This commit is contained in:
Robin Müller 2022-10-17 17:24:32 +02:00
parent 0d106fe4d6
commit 730f1564bc
No known key found for this signature in database
GPG Key ID: 11D4952C8CCEF814

View File

@ -69,6 +69,9 @@ ReturnValue_t CfdpTmFunnel::handlePacket(TmTcMessage& msg) {
return result;
}
std::memcpy(newPacketData, cfdpPacket, cfdpPacketLen);
// Delete old packet
tmStore.deleteData(msg.getStorageId());
msg.setStorageId(newStoreId);
result = msgQueue->sendToDefault(&msg);
if (result != returnvalue::OK) {
tmStore.deleteData(msg.getStorageId());