From 66c2acf2606877d00e056c1d1228b32d0a15c5bc Mon Sep 17 00:00:00 2001 From: "Matthias P. Braendli" Date: Tue, 10 Dec 2019 15:47:32 +0100 Subject: Make EDI input TIST delay configurable --- src/ConfigParser.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'src/ConfigParser.cpp') diff --git a/src/ConfigParser.cpp b/src/ConfigParser.cpp index 063e4ec..776ddc8 100644 --- a/src/ConfigParser.cpp +++ b/src/ConfigParser.cpp @@ -51,11 +51,12 @@ #include #include #include -#include +#include #include #include -#include #include +#include +#include #include using namespace std; @@ -1037,6 +1038,9 @@ static void setup_subchannel_from_ptree(shared_ptr& subchan, throw runtime_error("Subchannel with uid " + subchanuid + " has invalid buffer-management !"); } + const int32_t tist_delay = pt.get("tist-delay", 0); + subchan->input->setTistDelay(chrono::milliseconds(tist_delay)); + subchan->startAddress = 0; dabProtection* protection = &subchan->protection; -- cgit v1.2.3