aboutsummaryrefslogtreecommitdiffstats
path: root/src/main.cpp
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2020-06-23 15:46:20 +0200
committerMatthias P. Braendli <matthias.braendli@mpb.li>2020-06-23 15:46:57 +0200
commit3ab3a7f193b63a87700611ccda3d611a8781df85 (patch)
treed2369fb59ddd5cf90694acb5940d96d7d541433c /src/main.cpp
parent0998e314f79732cddd3ef569542a37f755814836 (diff)
downloadODR-EDI2EDI-3ab3a7f193b63a87700611ccda3d611a8781df85.tar.gz
ODR-EDI2EDI-3ab3a7f193b63a87700611ccda3d611a8781df85.tar.bz2
ODR-EDI2EDI-3ab3a7f193b63a87700611ccda3d611a8781df85.zip
Add Frame 0 TS to log output
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/main.cpp b/src/main.cpp
index 43cae90..6cf14f8 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -101,7 +101,10 @@ class Main : public EdiDecoder::ETIDataCollector {
uint16_t minor) override { }
// Update the data for the frame characterisation
- virtual void update_fc_data(const EdiDecoder::eti_fc_data& fc_data) override { }
+ virtual void update_fc_data(const EdiDecoder::eti_fc_data& fc_data) override {
+ dflc = fc_data.dflc;
+ }
+
virtual void update_fic(std::vector<uint8_t>&& fic) override { }
virtual void update_err(uint8_t err) override { }
@@ -116,6 +119,7 @@ class Main : public EdiDecoder::ETIDataCollector {
virtual void assemble(EdiDecoder::ReceivedTagPacket&& tag_data) override
{
tagpacket_t tp;
+ tp.dflc = dflc;
tp.tagpacket = move(tag_data.tagpacket);
tp.received_at = std::chrono::steady_clock::now();
tp.timestamp = move(tag_data.timestamp);
@@ -344,6 +348,8 @@ class Main : public EdiDecoder::ETIDataCollector {
std::string source;
EDISender edisender;
+
+ uint16_t dflc = 0;
};