From a5cb91d6f8dcf98c171dcd0fd0033603ffabd989 Mon Sep 17 00:00:00 2001 From: jaycedowell Date: Fri, 25 Aug 2023 08:12:57 -0600 Subject: [PATCH] Use the TBF "unassigned" field to hold the number of stands. --- src/formats/tbf.hpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/formats/tbf.hpp b/src/formats/tbf.hpp index 289eda2b4..2c73b699d 100644 --- a/src/formats/tbf.hpp +++ b/src/formats/tbf.hpp @@ -37,7 +37,7 @@ struct __attribute__((packed)) tbf_hdr_type { uint32_t frame_count_word; uint32_t seconds_count; uint16_t first_chan; - uint16_t unassinged; + uint16_t nstand; uint64_t time_tag; }; @@ -55,6 +55,7 @@ class TBFHeaderFiller : virtual public PacketHeaderFiller { header->frame_count_word = htobe32((framecount & 0xFFFFFF) \ | ((uint32_t) 0x01 << 24)); header->first_chan = htons(hdr_base->src); + header->nstand = htobe16(hdr_base->nsrc); header->time_tag = htobe64(hdr_base->seq); } };