diff options
| author | Matthias P. Braendli <matthias.braendli@mpb.li> | 2021-05-19 14:48:55 +0200 | 
|---|---|---|
| committer | Matthias P. Braendli <matthias.braendli@mpb.li> | 2021-05-19 14:48:55 +0200 | 
| commit | f4e6037864f353a0deb3b40a4533cffa70bc201f (patch) | |
| tree | 835af96e40cc306031b4b9507f456265c6e35ca9 /lib/edioutput/AFPacket.h | |
| parent | 02c751e4e714b1aa4b4c93699b992d522fd3e9ca (diff) | |
| download | ODR-SourceCompanion-f4e6037864f353a0deb3b40a4533cffa70bc201f.tar.gz ODR-SourceCompanion-f4e6037864f353a0deb3b40a4533cffa70bc201f.tar.bz2 ODR-SourceCompanion-f4e6037864f353a0deb3b40a4533cffa70bc201f.zip | |
Common 44ae39c: Make SEQ and PSEQ available on EDI receive and improve error handling
Diffstat (limited to 'lib/edioutput/AFPacket.h')
| -rw-r--r-- | lib/edioutput/AFPacket.h | 9 | 
1 files changed, 5 insertions, 4 deletions
| 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 <vector>  #include <cstdint>  #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;  }; | 
