diff --git a/mission/tmtc/PusTmFunnel.cpp b/mission/tmtc/PusTmFunnel.cpp index b49d19d3..e5285ba5 100644 --- a/mission/tmtc/PusTmFunnel.cpp +++ b/mission/tmtc/PusTmFunnel.cpp @@ -69,7 +69,6 @@ ReturnValue_t PusTmFunnel::handleTmPacket(TmTcMessage &message) { } packet.setSequenceCount(sourceSequenceCount++); sourceSequenceCount = sourceSequenceCount % ccsds::LIMIT_SEQUENCE_COUNT; - packet.updateErrorControl(); uint8_t service = packet.getMessageTypeCounter(); auto mapIter = msgCounterMap.find(service); if (mapIter == msgCounterMap.end()) { @@ -81,6 +80,7 @@ ReturnValue_t PusTmFunnel::handleTmPacket(TmTcMessage &message) { mapIter->second++; } packet.setMessageCount(mapIter->second); + packet.updateErrorControl(); // Send to persistent TM store if the packet matches some filter. MessageQueueId_t destination;