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/edi/STIDecoder.cpp | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'lib/edi/STIDecoder.cpp') diff --git a/lib/edi/STIDecoder.cpp b/lib/edi/STIDecoder.cpp index 99f7c11..d387f1e 100644 --- a/lib/edi/STIDecoder.cpp +++ b/lib/edi/STIDecoder.cpp @@ -72,7 +72,7 @@ void STIDecoder::setMaxDelay(int num_af_packets) #define AFPACKET_HEADER_LEN 10 // includes SYNC -bool STIDecoder::decode_starptr(const std::vector& value, const tag_name_t& n) +bool STIDecoder::decode_starptr(const std::vector& value, const tag_name_t& /*n*/) { if (value.size() != 0x40 / 8) { etiLog.log(warn, "Incorrect length %02lx for *PTR", value.size()); @@ -92,7 +92,7 @@ bool STIDecoder::decode_starptr(const std::vector& value, const tag_nam return true; } -bool STIDecoder::decode_dsti(const std::vector& value, const tag_name_t& n) +bool STIDecoder::decode_dsti(const std::vector& value, const tag_name_t& /*n*/) { size_t offset = 0; @@ -200,7 +200,7 @@ bool STIDecoder::decode_stardmy(const std::vector&, const tag_name_t&) return true; } -bool STIDecoder::decode_odraudiolevel(const std::vector& value, const tag_name_t& n) +bool STIDecoder::decode_odraudiolevel(const std::vector& value, const tag_name_t& /*n*/) { constexpr size_t expected_length = 2 * sizeof(int16_t); @@ -223,7 +223,7 @@ bool STIDecoder::decode_odraudiolevel(const std::vector& value, const t return true; } -bool STIDecoder::decode_odrversion(const std::vector& value, const tag_name_t& n) +bool STIDecoder::decode_odrversion(const std::vector& value, const tag_name_t& /*n*/) { const auto vd = parse_odr_version_data(value); m_data_collector.update_odr_version(vd); @@ -233,7 +233,8 @@ bool STIDecoder::decode_odrversion(const std::vector& value, const tag_ void STIDecoder::packet_completed() { - m_data_collector.assemble(); + auto seq = m_dispatcher.get_seq_info(); + m_data_collector.assemble(seq); } } -- cgit v1.2.3