From 37df6287197053f674ae24daa6d76b07fc6e5721 Mon Sep 17 00:00:00 2001 From: f4exb Date: Mon, 3 Jul 2017 23:22:45 +0200 Subject: [PATCH] The first device (R0) is always a buddy leader --- plugins/samplesource/limesdrinput/limesdrinput.cpp | 2 +- sdrbase/mainwindow.cpp | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/plugins/samplesource/limesdrinput/limesdrinput.cpp b/plugins/samplesource/limesdrinput/limesdrinput.cpp index ba20f7f31..70038f522 100644 --- a/plugins/samplesource/limesdrinput/limesdrinput.cpp +++ b/plugins/samplesource/limesdrinput/limesdrinput.cpp @@ -449,7 +449,7 @@ bool LimeSDRInput::handleMessage(const Message& message) if (m_deviceShared.m_deviceParams->getDevice() && (LMS_GetChipTemperature(m_deviceShared.m_deviceParams->getDevice(), 0, &temp) == 0)) { - qDebug("LimeSDRInput::handleMessage: MsgGetDeviceInfo: temperature: %f", temp); + //qDebug("LimeSDRInput::handleMessage: MsgGetDeviceInfo: temperature: %f", temp); } else { diff --git a/sdrbase/mainwindow.cpp b/sdrbase/mainwindow.cpp index ef7a9f6e8..31151dccc 100644 --- a/sdrbase/mainwindow.cpp +++ b/sdrbase/mainwindow.cpp @@ -141,6 +141,8 @@ MainWindow::MainWindow(QWidget* parent) : exit(0); } + m_deviceUIs.back()->m_deviceSourceAPI->setBuddyLeader(true); // the first device is always the leader + bool sampleSourceSignalsBlocked = m_deviceUIs.back()->m_samplingDeviceControl->getDeviceSelector()->blockSignals(true); m_deviceUIs.back()->m_samplingDeviceControl->getDeviceSelector()->setCurrentIndex(sampleSourceIndex); m_deviceUIs.back()->m_samplingDeviceControl->getDeviceSelector()->blockSignals(sampleSourceSignalsBlocked);