diff options
author | Matthias P. Braendli <matthias.braendli@mpb.li> | 2014-02-17 20:20:11 +0100 |
---|---|---|
committer | Matthias P. Braendli <matthias.braendli@mpb.li> | 2014-02-17 20:20:11 +0100 |
commit | 93d6dc315822f0b47c940686596b651d939a1676 (patch) | |
tree | cc439fae9ea6680c189b0e40d137a3069a53dfba /src | |
parent | 237ba36c1071b3115e59b5ce1c97f75a38aa4a2b (diff) | |
download | dabmod-93d6dc315822f0b47c940686596b651d939a1676.tar.gz dabmod-93d6dc315822f0b47c940686596b651d939a1676.tar.bz2 dabmod-93d6dc315822f0b47c940686596b651d939a1676.zip |
fix channel/frequency choice logic
Diffstat (limited to 'src')
-rw-r--r-- | src/DabMod.cpp | 2 |
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; } |