From 5d1b6420535c72d7a8df85a5db08ff1c0230690a Mon Sep 17 00:00:00 2001 From: "Matthias P. Braendli" Date: Fri, 28 Jul 2017 16:11:32 +0200 Subject: Add work in progress odr-zmq2edi --- src/dabOutput/edi/TagItems.cpp | 6 +++--- src/dabOutput/edi/TagItems.h | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'src/dabOutput/edi') diff --git a/src/dabOutput/edi/TagItems.cpp b/src/dabOutput/edi/TagItems.cpp index 75a4ecf..ed8517d 100644 --- a/src/dabOutput/edi/TagItems.cpp +++ b/src/dabOutput/edi/TagItems.cpp @@ -72,8 +72,8 @@ std::vector TagDETI::Assemble() packet.push_back(0); packet.push_back(0); - uint8_t fct = dflc % 250; - uint8_t fcth = dflc / 250; + uint8_t fct = dlfc % 250; + uint8_t fcth = dlfc / 250; uint16_t detiHeader = fct | (fcth << 8) | (rfudf << 13) | (ficf << 14) | (atstf << 15); @@ -122,7 +122,7 @@ std::vector TagDETI::Assemble() packet[6] = (taglength >> 8) & 0xFF; packet[7] = taglength & 0xFF; - dflc = (dflc+1) % 5000; + dlfc = (dlfc+1) % 5000; /* std::cerr << "TagItem deti, packet.size " << packet.size() << std::endl; diff --git a/src/dabOutput/edi/TagItems.h b/src/dabOutput/edi/TagItems.h index 856d25b..19284d2 100644 --- a/src/dabOutput/edi/TagItems.h +++ b/src/dabOutput/edi/TagItems.h @@ -64,7 +64,7 @@ class TagDETI : public TagItem uint8_t rfa = 0; uint8_t rfu = 0; // MNSC is valid uint16_t mnsc = 0; - uint16_t dflc = 0; // modulo 5000 frame counter + uint16_t dlfc = 0; // modulo 5000 frame counter // ATST (optional) bool atstf = false; // presence of atst data -- cgit v1.2.3