summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/Outputs.cpp12
-rw-r--r--src/Outputs.h3
2 files changed, 9 insertions, 6 deletions
diff --git a/src/Outputs.cpp b/src/Outputs.cpp
index be5b841..6249e2d 100644
--- a/src/Outputs.cpp
+++ b/src/Outputs.cpp
@@ -161,6 +161,8 @@ void EDI::add_tcp_destination(const std::string& host, int port)
}
dest->dest_port = port;
m_edi_conf.destinations.push_back(dest);
+
+ m_edi_conf.dump = true;
}
bool EDI::enabled() const
@@ -177,11 +179,9 @@ bool EDI::write_frame(const uint8_t *buf, size_t len)
edi::TagStarPTR edi_tagStarPtr;
edi_tagStarPtr.protocol = "DSTI";
- edi::TagDSTI edi_tagDSTI;
-
- edi_tagDSTI.stihf = false;
- edi_tagDSTI.atstf = false;
- edi_tagDSTI.rfadf = false;
+ m_edi_tagDSTI.stihf = false;
+ m_edi_tagDSTI.atstf = false;
+ m_edi_tagDSTI.rfadf = false;
// DFCT is handled inside the TagDSTI
edi::TagSSm edi_tagPayload;
@@ -194,7 +194,7 @@ bool EDI::write_frame(const uint8_t *buf, size_t len)
// put tags *ptr, DETI and all subchannels into one TagPacket
edi_tagpacket.tag_items.push_back(&edi_tagStarPtr);
- edi_tagpacket.tag_items.push_back(&edi_tagDSTI);
+ edi_tagpacket.tag_items.push_back(&m_edi_tagDSTI);
edi_tagpacket.tag_items.push_back(&edi_tagPayload);
m_edi_sender->write(edi_tagpacket);
diff --git a/src/Outputs.h b/src/Outputs.h
index 297f926..513def4 100644
--- a/src/Outputs.h
+++ b/src/Outputs.h
@@ -143,6 +143,9 @@ class EDI: public Base {
private:
edi::configuration_t m_edi_conf;
std::shared_ptr<edi::Sender> m_edi_sender;
+
+ edi::TagDSTI m_edi_tagDSTI;
+
};
}