1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-11-17 22:01:45 -05:00

The first device (R0) is always a buddy leader

This commit is contained in:
f4exb 2017-07-03 23:22:45 +02:00
parent 034610721b
commit 37df628719
2 changed files with 3 additions and 1 deletions

View File

@ -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
{

View File

@ -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);