aboutsummaryrefslogtreecommitdiffstats
path: root/src/DabMod.cpp
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2014-02-17 20:20:11 +0100
committerMatthias P. Braendli <matthias.braendli@mpb.li>2014-02-17 20:20:11 +0100
commit93d6dc315822f0b47c940686596b651d939a1676 (patch)
treecc439fae9ea6680c189b0e40d137a3069a53dfba /src/DabMod.cpp
parent237ba36c1071b3115e59b5ce1c97f75a38aa4a2b (diff)
downloaddabmod-93d6dc315822f0b47c940686596b651d939a1676.tar.gz
dabmod-93d6dc315822f0b47c940686596b651d939a1676.tar.bz2
dabmod-93d6dc315822f0b47c940686596b651d939a1676.zip
fix channel/frequency choice logic
Diffstat (limited to 'src/DabMod.cpp')
-rw-r--r--src/DabMod.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/DabMod.cpp b/src/DabMod.cpp
index 1e80025..6bcf900 100644
--- a/src/DabMod.cpp
+++ b/src/DabMod.cpp
@@ -468,7 +468,7 @@ int main(int argc, char* argv[])
}
outputuhd_conf.frequency = freq;
}
- else {
+ if (outputuhd_conf.frequency != 0 && chan != "") {
std::cerr << " UHD output: cannot define both frequency and channel.\n";
goto END_MAIN;
}