aboutsummaryrefslogtreecommitdiffstats
path: root/src/output/Soapy.cpp
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2018-11-18 17:39:22 +0100
committerMatthias P. Braendli <matthias.braendli@mpb.li>2018-11-18 17:39:22 +0100
commit7b0bd2675b7514e2292684bfe2bd647f87330727 (patch)
tree73f85d7b8f9dcabbb1c71f7956fd9f8cc2096a5d /src/output/Soapy.cpp
parente84f532b9e97dc2ad53ad96cc9543a178d6f20fd (diff)
downloaddabmod-7b0bd2675b7514e2292684bfe2bd647f87330727.tar.gz
dabmod-7b0bd2675b7514e2292684bfe2bd647f87330727.tar.bz2
dabmod-7b0bd2675b7514e2292684bfe2bd647f87330727.zip
Add SDR temperature to RC
Diffstat (limited to 'src/output/Soapy.cpp')
-rw-r--r--src/output/Soapy.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/output/Soapy.cpp b/src/output/Soapy.cpp
index 36ecaa8..86ed3e0 100644
--- a/src/output/Soapy.cpp
+++ b/src/output/Soapy.cpp
@@ -35,6 +35,7 @@ DESCRIPTION:
#include <SoapySDR/Errors.hpp>
#include <chrono>
+#include <limits>
#include <cstdio>
#include <iomanip>
@@ -239,6 +240,13 @@ const char* Soapy::device_name(void) const
return "Soapy";
}
+double Soapy::get_temperature(void) const
+{
+ // TODO Unimplemented
+ // LimeSDR exports 'lms7_temp'
+ return std::numeric_limits<double>::quiet_NaN();
+}
+
void Soapy::transmit_frame(const struct FrameData& frame)
{
if (not m_device) throw runtime_error("Soapy device not set up");