mirror of
https://github.com/f4exb/sdrangel.git
synced 2024-12-24 10:50:29 -05:00
BladeRF: open device by serial number
This commit is contained in:
parent
651303e860
commit
01b2c42a5f
@ -83,9 +83,9 @@ bool BladerfOutput::openDevice()
|
||||
}
|
||||
else
|
||||
{
|
||||
if (!DeviceBladeRF::open_bladerf(&m_dev, 0)) // TODO: fix; Open first available device as there is no proper handling for multiple devices
|
||||
if (!DeviceBladeRF::open_bladerf(&m_dev, qPrintable(m_deviceAPI->getSampleSinkSerial())))
|
||||
{
|
||||
qCritical("BladerfOutput::start: could not open BladeRF");
|
||||
qCritical("BladerfOutput::start: could not open BladeRF %s", qPrintable(m_deviceAPI->getSampleSinkSerial()));
|
||||
return false;
|
||||
}
|
||||
|
||||
|
@ -88,9 +88,9 @@ bool BladerfInput::openDevice()
|
||||
}
|
||||
else
|
||||
{
|
||||
if (!DeviceBladeRF::open_bladerf(&m_dev, 0)) // TODO: fix; Open first available device as there is no proper handling for multiple devices
|
||||
if (!DeviceBladeRF::open_bladerf(&m_dev, qPrintable(m_deviceAPI->getSampleSourceSerial())))
|
||||
{
|
||||
qCritical("BladerfInput::start: could not open BladeRF");
|
||||
qCritical("BladerfInput::start: could not open BladeRF %s", qPrintable(m_deviceAPI->getSampleSourceSerial()));
|
||||
return false;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user