From 6774abfb74fc270e27ae49da144e0c4484c3a4c8 Mon Sep 17 00:00:00 2001 From: Dan Date: Tue, 17 Oct 2023 16:47:22 -0400 Subject: [PATCH] Fix #363, decoding segs using incorrect macro --- fsw/src/cf_codec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fsw/src/cf_codec.c b/fsw/src/cf_codec.c index f62c0848..979e5d03 100644 --- a/fsw/src/cf_codec.c +++ b/fsw/src/cf_codec.c @@ -1125,7 +1125,7 @@ void CF_CFDP_DecodeAllSegments(CF_DecoderState_t *state, CF_Logical_SegmentList_ { --limit; - if (plseg->num_segments >= CF_PDU_MAX_TLV) + if (plseg->num_segments >= CF_PDU_MAX_SEGMENTS) { /* too many */ CF_CODEC_SET_DONE(state);