summaryrefslogtreecommitdiffstats
path: root/src/dabOutput/edi/AFPacket.cpp
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2015-07-17 11:22:25 +0200
committerMatthias P. Braendli <matthias.braendli@mpb.li>2015-07-17 11:22:25 +0200
commitbdcf14ca3a83675cfc56f8656e7f7a5ea934ba3a (patch)
tree53324537bd48256882cdd25e2d9c6c7003b47fbc /src/dabOutput/edi/AFPacket.cpp
parent5eb98cbc51135264ad0b82e0ba790df17f1d70c6 (diff)
downloaddabmux-bdcf14ca3a83675cfc56f8656e7f7a5ea934ba3a.tar.gz
dabmux-bdcf14ca3a83675cfc56f8656e7f7a5ea934ba3a.tar.bz2
dabmux-bdcf14ca3a83675cfc56f8656e7f7a5ea934ba3a.zip
EDI: add options, fix AF sequence, revision
Diffstat (limited to 'src/dabOutput/edi/AFPacket.cpp')
-rw-r--r--src/dabOutput/edi/AFPacket.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/dabOutput/edi/AFPacket.cpp b/src/dabOutput/edi/AFPacket.cpp
index 3b69f1c..a1d39b9 100644
--- a/src/dabOutput/edi/AFPacket.cpp
+++ b/src/dabOutput/edi/AFPacket.cpp
@@ -39,7 +39,7 @@
#define AFHEADER_PT_TAG 'T'
// AF Packet Major (3 bits) and Minor (4 bits) version
-#define AFHEADER_VERSION 0x8 // MAJ=1, MIN=0
+#define AFHEADER_VERSION 0x10 // MAJ=1, MIN=0
AFPacket AFPacketiser::Assemble(TagPacket tag_packet)
{
@@ -65,6 +65,7 @@ AFPacket AFPacketiser::Assemble(TagPacket tag_packet)
// fill rest of header
packet.push_back(seq >> 8);
packet.push_back(seq & 0xFF);
+ seq++;
packet.push_back((have_crc ? 0x80 : 0) | AFHEADER_VERSION); // ar_cf: CRC=1
packet.push_back(AFHEADER_PT_TAG);