summaryrefslogtreecommitdiffstats
path: root/plugins/samplesource/osmosdr/osmosdrinput.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/samplesource/osmosdr/osmosdrinput.cpp')
-rw-r--r--plugins/samplesource/osmosdr/osmosdrinput.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/samplesource/osmosdr/osmosdrinput.cpp b/plugins/samplesource/osmosdr/osmosdrinput.cpp
index 8e724cf..989eb09 100644
--- a/plugins/samplesource/osmosdr/osmosdrinput.cpp
+++ b/plugins/samplesource/osmosdr/osmosdrinput.cpp
@@ -22,7 +22,7 @@
#include "osmosdrgui.h"
#include "util/simpleserializer.h"
-MessageRegistrator OsmoSDRInput::MsgConfigureOsmoSDR::ID("MsgConfigureOsmoSDR");
+MESSAGE_CLASS_DEFINITION(OsmoSDRInput::MsgConfigureOsmoSDR, Message)
OsmoSDRInput::Settings::Settings() :
m_swapIQ(false),
@@ -331,7 +331,7 @@ quint64 OsmoSDRInput::getCenterFrequency() const
bool OsmoSDRInput::handleMessage(Message* message)
{
- if(message->id() == MsgConfigureOsmoSDR::ID()) {
+ if(MsgConfigureOsmoSDR::match(message)) {
MsgConfigureOsmoSDR* conf = (MsgConfigureOsmoSDR*)message;
if(!applySettings(conf->getGeneralSettings(), conf->getSettings(), false))
qDebug("OsmoSDR config error");