From a0eda7372e525c3b7d292c042155be19c34856f8 Mon Sep 17 00:00:00 2001 From: "Matthias P. Braendli" Date: Mon, 17 Feb 2014 20:29:54 +0100 Subject: really fix channel/frequency choice logic Note to self: learn to try out code before pushing eagerly --- src/DabMod.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- cgit v1.2.3