aboutsummaryrefslogtreecommitdiffstats
path: root/src/DabMod.cpp
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2014-11-02 21:07:08 +0100
committerMatthias P. Braendli <matthias.braendli@mpb.li>2014-11-02 21:07:08 +0100
commitcf46de6e9faa6628650217f53bae72059475c63e (patch)
tree5865885c53ea783d547a19533f1ab9b2e122f973 /src/DabMod.cpp
parent014e35d73f80cef14895bc9c0dad5d35213e8aab (diff)
downloaddabmod-cf46de6e9faa6628650217f53bae72059475c63e.tar.gz
dabmod-cf46de6e9faa6628650217f53bae72059475c63e.tar.bz2
dabmod-cf46de6e9faa6628650217f53bae72059475c63e.zip
Change UHD txgain to double
Diffstat (limited to 'src/DabMod.cpp')
-rw-r--r--src/DabMod.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/DabMod.cpp b/src/DabMod.cpp
index a4ef228..b0a7a2c 100644
--- a/src/DabMod.cpp
+++ b/src/DabMod.cpp
@@ -259,7 +259,7 @@ int main(int argc, char* argv[])
break;
case 'G':
#if defined(HAVE_OUTPUT_UHD)
- outputuhd_conf.txgain = (int)strtol(optarg, NULL, 10);
+ outputuhd_conf.txgain = strtod(optarg, NULL);
#endif
break;
case 'l':
@@ -453,7 +453,7 @@ int main(int argc, char* argv[])
"setting type in [uhd] device is deprecated !\n";
}
- outputuhd_conf.txgain = pt.get("uhdoutput.txgain", 0);
+ outputuhd_conf.txgain = pt.get("uhdoutput.txgain", 0.0);
outputuhd_conf.frequency = pt.get<double>("uhdoutput.frequency", 0);
std::string chan = pt.get<std::string>("uhdoutput.channel", "");