Skip to content

Commit 8187ba9

Browse files
committed
Abandon any spanning packets upon OOB FHP
1 parent cfe6e1b commit 8187ba9

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

Svc/Ccsds/AosDeframer/AosDeframer.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -410,6 +410,8 @@ void AosDeframer::extractPackets(AosDeframerVc& vc, Fw::Buffer& data) {
410410
if (firstHeaderPointer >= dataZoneSize) {
411411
this->log_WARNING_HI_InvalidFhp(vc.virtualChannelId, firstHeaderPointer, dataZoneSize);
412412
this->notifyErrorIfConnected(Ccsds::FrameError::AOS_INVALID_LENGTH);
413+
// Abandon any existing data since this frame (and any contiunuing packets) are garbage now
414+
this->abandonSpanningPacket(vc);
413415
return;
414416
}
415417

0 commit comments

Comments
 (0)