From 93d6dc315822f0b47c940686596b651d939a1676 Mon Sep 17 00:00:00 2001 From: "Matthias P. Braendli" Date: Mon, 17 Feb 2014 20:20:11 +0100 Subject: fix channel/frequency choice logic --- src/DabMod.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- cgit v1.2.3