summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2018-01-23 07:54:09 +0100
committerMatthias P. Braendli <matthias.braendli@mpb.li>2018-01-23 07:54:09 +0100
commit01bbb73cec7724c15ecad0e841612d3b67f10522 (patch)
tree6ea9eb7c9067cf95216845ccea207c7c6a5c170f
parent9483496a1b9df4e3a808d50dbcffacd0e78ef222 (diff)
downloaddabmod-01bbb73cec7724c15ecad0e841612d3b67f10522.tar.gz
dabmod-01bbb73cec7724c15ecad0e841612d3b67f10522.tar.bz2
dabmod-01bbb73cec7724c15ecad0e841612d3b67f10522.zip
Fix compilation with disabled UHD and SoapySDR
-rw-r--r--src/ConfigParser.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/ConfigParser.cpp b/src/ConfigParser.cpp
index 7603c1e..e0bf6dc 100644
--- a/src/ConfigParser.cpp
+++ b/src/ConfigParser.cpp
@@ -426,7 +426,9 @@ void parse_args(int argc, char **argv, mod_settings_t& mod_settings)
break;
case 'o':
mod_settings.tist_offset_s = strtod(optarg, NULL);
+#if defined(HAVE_OUTPUT_UHD)
mod_settings.sdr_device_config.enableSync = true;
+#endif
break;
case 'm':
mod_settings.dabMode = strtol(optarg, NULL, 0);