From dbeeaa8f66467b7109836a013606ea22cfc48237 Mon Sep 17 00:00:00 2001 From: f4exb Date: Wed, 20 Dec 2017 21:38:56 +0100 Subject: [PATCH] Recognize SDRplay RSP2 but do not support it effectively --- plugins/samplesource/sdrplay/sdrplayinput.cpp | 2 ++ plugins/samplesource/sdrplay/sdrplayinput.h | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/plugins/samplesource/sdrplay/sdrplayinput.cpp b/plugins/samplesource/sdrplay/sdrplayinput.cpp index 7871b30f0..0f01613c4 100644 --- a/plugins/samplesource/sdrplay/sdrplayinput.cpp +++ b/plugins/samplesource/sdrplay/sdrplayinput.cpp @@ -112,6 +112,8 @@ bool SDRPlayInput::openDevice() if (QString(product) == "RSP1A") { m_variant = SDRPlayRSP1A; + } else if (QString(product) == "RSP2") { + m_variant = SDRPlayRSP2; } else { m_variant = SDRPlayRSP1; } diff --git a/plugins/samplesource/sdrplay/sdrplayinput.h b/plugins/samplesource/sdrplay/sdrplayinput.h index 93e2d2d7a..b82e057ac 100644 --- a/plugins/samplesource/sdrplay/sdrplayinput.h +++ b/plugins/samplesource/sdrplay/sdrplayinput.h @@ -34,7 +34,8 @@ public: { SDRPlayUndef, SDRPlayRSP1, - SDRPlayRSP1A + SDRPlayRSP1A, + SDRPlayRSP2 }; class MsgConfigureSDRPlay : public Message {