diff options
author | Matthias P. Braendli <matthias.braendli@mpb.li> | 2014-02-17 20:29:54 +0100 |
---|---|---|
committer | Matthias P. Braendli <matthias.braendli@mpb.li> | 2014-02-17 20:29:54 +0100 |
commit | a0eda7372e525c3b7d292c042155be19c34856f8 (patch) | |
tree | c4702b42806647ef62ef76c72dfc33901b52d801 | |
parent | 8cbe4f5d886264c8f5ace132922d7168065ebc55 (diff) | |
download | dabmod-a0eda7372e525c3b7d292c042155be19c34856f8.tar.gz dabmod-a0eda7372e525c3b7d292c042155be19c34856f8.tar.bz2 dabmod-a0eda7372e525c3b7d292c042155be19c34856f8.zip |
really fix channel/frequency choice logic
Note to self: learn to try out code before pushing eagerly
-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 6bcf900..29c0421 100644 --- a/src/DabMod.cpp +++ b/src/DabMod.cpp @@ -468,7 +468,7 @@ int main(int argc, char* argv[]) } outputuhd_conf.frequency = freq; } - if (outputuhd_conf.frequency != 0 && chan != "") { + else if (outputuhd_conf.frequency != 0 && chan != "") { std::cerr << " UHD output: cannot define both frequency and channel.\n"; goto END_MAIN; } |