Skip to content

Commit

Permalink
Use the TBF "unassigned" field to hold the number of stands.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaycedowell authored Aug 25, 2023
1 parent 8859ca4 commit a5cb91d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/formats/tbf.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
};

Expand All @@ -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);
}
};

0 comments on commit a5cb91d

Please sign in to comment.