The first device (R0) is always a buddy leader

pull/60/head
f4exb 2017-07-03 23:22:45 +02:00
rodzic 034610721b
commit 37df628719
2 zmienionych plików z 3 dodań i 1 usunięć

Wyświetl plik

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

Wyświetl plik

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