summaryrefslogtreecommitdiffstats
path: root/src/ConfigParser.cpp
diff options
context:
space:
mode:
authorF5OEO <evaristec@gmail.com>2018-12-11 17:10:35 +0000
committerF5OEO <evaristec@gmail.com>2018-12-11 17:10:35 +0000
commitf60ba388a646032cbfdcad3c723d1e457cc4457e (patch)
treec200f7a204751edd30bbfe86ddc61bdd571bea00 /src/ConfigParser.cpp
parentf4f5adb665c12537fdbbe1cb90d8121a050e2458 (diff)
downloaddabmod-f60ba388a646032cbfdcad3c723d1e457cc4457e.tar.gz
dabmod-f60ba388a646032cbfdcad3c723d1e457cc4457e.tar.bz2
dabmod-f60ba388a646032cbfdcad3c723d1e457cc4457e.zip
Add upsample parameter
Diffstat (limited to 'src/ConfigParser.cpp')
-rw-r--r--src/ConfigParser.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/ConfigParser.cpp b/src/ConfigParser.cpp
index b894f8b..107ee45 100644
--- a/src/ConfigParser.cpp
+++ b/src/ConfigParser.cpp
@@ -312,16 +312,13 @@ static void parse_configfile(
auto& outputlime_conf = mod_settings.sdr_device_config;
outputlime_conf.device = pt.Get("limeoutput.device", "");
outputlime_conf.masterClockRate = pt.GetInteger("limeoutput.master_clock_rate", 0);
-
- outputlime_conf.txgain = pt.GetReal("limeoutput.txgain", 0.0);
- outputlime_conf.txgain = pt.GetReal("limeoutput.txgain", 0.0);
- outputlime_conf.txgain = pt.GetReal("limeoutput.txgain", 0.0);
outputlime_conf.txgain = pt.GetReal("limeoutput.txgain", 0.0);
outputlime_conf.tx_antenna = pt.Get("limeoutput.tx_antenna", "");
outputlime_conf.lo_offset = pt.GetReal("limeoutput.lo_offset", 0.0);
outputlime_conf.frequency = pt.GetReal("limeoutput.frequency", 0);
std::string chan = pt.Get("limeoutput.channel", "");
outputlime_conf.dabMode = mod_settings.dabMode;
+ outputlime_conf.upsample = pt.GetInteger("limeoutput.upsample", 1);
if (outputlime_conf.frequency == 0 && chan == "") {
std::cerr << " Lime output enabled, but neither frequency nor channel defined.\n";