aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2019-11-05 10:33:02 +0100
committerMatthias P. Braendli <matthias.braendli@mpb.li>2019-11-05 10:33:02 +0100
commitee59a64bb74dcb663c219533ab5578f6cc138666 (patch)
treee47e7dde4ea3d92ca13a63a7b821dfdb48737cd6 /src
parent9ffa12dde3dd86dae1290897392280451a95addd (diff)
downloaddabmod-ee59a64bb74dcb663c219533ab5578f6cc138666.tar.gz
dabmod-ee59a64bb74dcb663c219533ab5578f6cc138666.tar.bz2
dabmod-ee59a64bb74dcb663c219533ab5578f6cc138666.zip
Fix compilation with disabled limesdr
Diffstat (limited to 'src')
-rw-r--r--src/output/SDR.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/output/SDR.cpp b/src/output/SDR.cpp
index ad65c1c..6078fc7 100644
--- a/src/output/SDR.cpp
+++ b/src/output/SDR.cpp
@@ -86,9 +86,11 @@ SDR::SDR(SDRDeviceConfig& config, std::shared_ptr<SDRDevice> device) :
RC_ADD_PARAMETER(gpsdo_num_sv, "Number of Satellite Vehicles tracked by GPSDO");
RC_ADD_PARAMETER(gpsdo_holdover, "1 if the GPSDO is in holdover, 0 if it is using gnss");
+#ifdef HAVE_LIMESDR
if (std::dynamic_pointer_cast<Lime>(device)) {
RC_ADD_PARAMETER(fifo_fill, "A value representing the Lime FIFO fullness [percent]");
}
+#endif // HAVE_LIMESDR
}
SDR::~SDR()
@@ -467,6 +469,7 @@ const string SDR::get_parameter(const string& parameter) const
const auto stat = m_device->get_run_statistics();
ss << (stat.gpsdo_holdover ? 1 : 0);
}
+#ifdef HAVE_LIMESDR
else if (parameter == "fifo_fill") {
const auto dev = std::dynamic_pointer_cast<Lime>(m_device);
@@ -479,6 +482,7 @@ const string SDR::get_parameter(const string& parameter) const
throw ParameterError(ss.str());
}
}
+#endif // HAVE_LIMESDR
else {
ss << "Parameter '" << parameter <<
"' is not exported by controllable " << get_rc_name();