diff options
author | F5OEO <evaristec@gmail.com> | 2018-12-10 20:49:06 +0000 |
---|---|---|
committer | F5OEO <evaristec@gmail.com> | 2018-12-10 20:49:06 +0000 |
commit | f4f5adb665c12537fdbbe1cb90d8121a050e2458 (patch) | |
tree | 23dc5dcd81e463e7dd9c74f2000db3ce2d58085d /src | |
parent | e904cf0165ee80989c6d86572684997109d21fa8 (diff) | |
download | dabmod-f4f5adb665c12537fdbbe1cb90d8121a050e2458.tar.gz dabmod-f4f5adb665c12537fdbbe1cb90d8121a050e2458.tar.bz2 dabmod-f4f5adb665c12537fdbbe1cb90d8121a050e2458.zip |
Complete param parser, TODO: use it
Diffstat (limited to 'src')
-rw-r--r-- | src/ConfigParser.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/ConfigParser.cpp b/src/ConfigParser.cpp index 209ebe4..b894f8b 100644 --- a/src/ConfigParser.cpp +++ b/src/ConfigParser.cpp @@ -318,24 +318,24 @@ static void parse_configfile( 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("soapyoutput.lo_offset", 0.0); - outputlime_conf.frequency = pt.GetReal("soapyoutput.frequency", 0); - std::string chan = pt.Get("soapyoutput.channel", ""); + 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; if (outputlime_conf.frequency == 0 && chan == "") { - std::cerr << " soapy output enabled, but neither frequency nor channel defined.\n"; + std::cerr << " Lime output enabled, but neither frequency nor channel defined.\n"; throw std::runtime_error("Configuration error"); } else if (outputlime_conf.frequency == 0) { outputlime_conf.frequency = parseChannel(chan); } else if (outputlime_conf.frequency != 0 && chan != "") { - std::cerr << " soapy output: cannot define both frequency and channel.\n"; + std::cerr << " Lime output: cannot define both frequency and channel.\n"; throw std::runtime_error("Configuration error"); } - outputlime_conf.dpdFeedbackServerPort = pt.GetInteger("soapyoutput.dpd_port", 0); + outputlime_conf.dpdFeedbackServerPort = pt.GetInteger("limeoutput.dpd_port", 0); mod_settings.useLimeOutput = true; } |