aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2015-06-28 21:25:47 +0200
committerMatthias P. Braendli <matthias.braendli@mpb.li>2015-06-28 21:25:47 +0200
commita37734c25c445af152d1097b5f613aca6c1bc3a1 (patch)
treeafd997a7227a3033d24f7bc96ef3b3ce8249161a
parentdea07072227db98f7233fc66e55f7341d890fcbc (diff)
downloaddabmod-a37734c25c445af152d1097b5f613aca6c1bc3a1.tar.gz
dabmod-a37734c25c445af152d1097b5f613aca6c1bc3a1.tar.bz2
dabmod-a37734c25c445af152d1097b5f613aca6c1bc3a1.zip
Make TII enabling a soft-fail
-rw-r--r--src/DabModulator.cpp10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/DabModulator.cpp b/src/DabModulator.cpp
index 6c19424..8a52401 100644
--- a/src/DabModulator.cpp
+++ b/src/DabModulator.cpp
@@ -198,8 +198,14 @@ int DabModulator::process(Buffer* const dataIn, Buffer* dataOut)
(float)mySpacing * (float)myOutputRate / 2048000.0f,
cic_ratio));
- shared_ptr<TII> tii = make_shared<TII>(myDabMode, myTiiConfig);
- tii->enrol_at(*myRCs);
+ shared_ptr<TII> tii;
+ try {
+ tii = make_shared<TII>(myDabMode, myTiiConfig);
+ tii->enrol_at(*myRCs);
+ }
+ catch (std::runtime_error& e) {
+ etiLog.level(error) << "Could not initialise TII, skipping!";
+ }
shared_ptr<OfdmGenerator> cifOfdm(
new OfdmGenerator((1 + myNbSymbols), myNbCarriers, mySpacing));