important order bugfix
Some checks failed
EIVE/eive-obsw/pipeline/head There was a failure building this commit

This commit is contained in:
Robin Müller 2023-06-25 12:49:51 +02:00
parent e036ed2bff
commit 5a15d39a1d
Signed by: muellerr
GPG Key ID: A649FB78196E3849

View File

@ -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;