From 26b20a9aa0167b64e75b813aaf9b41557b4de3df Mon Sep 17 00:00:00 2001 From: "Matthias P. Braendli" Date: Wed, 19 May 2021 14:48:13 +0200 Subject: Common 44ae39c: Make SEQ and PSEQ available on EDI receive and improve error handling --- lib/edioutput/AFPacket.h | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'lib/edioutput/AFPacket.h') diff --git a/lib/edioutput/AFPacket.h b/lib/edioutput/AFPacket.h index f2c4e35..6e6ec47 100644 --- a/lib/edioutput/AFPacket.h +++ b/lib/edioutput/AFPacket.h @@ -1,5 +1,5 @@ /* - Copyright (C) 2014 + Copyright (C) 2021 Matthias P. Braendli, matthias.braendli@mpb.li http://www.opendigitalradio.org @@ -28,7 +28,6 @@ #pragma once -#include "config.h" #include #include #include "TagItems.h" @@ -49,10 +48,12 @@ class AFPacketiser AFPacket Assemble(TagPacket tag_packet); + void OverrideSeq(uint16_t seq); + private: - static const bool have_crc = true; + static const bool m_have_crc = true; - uint16_t seq = 0; //counter that overflows at 0xFFFF + uint16_t m_seq = 0; //counter that overflows at 0xFFFF bool m_verbose; }; -- cgit v1.2.3