mirror of
https://github.com/f4exb/sdrangel.git
synced 2024-12-23 01:55:48 -05:00
PlutoSDR: emit critical log message if context cannot be created
This commit is contained in:
parent
7eb5b762b0
commit
843c67a5b0
@ -56,6 +56,10 @@ DevicePlutoSDRBox::DevicePlutoSDRBox(const std::string& uri) :
|
|||||||
m_devRx = iio_context_find_device(m_ctx, "cf-ad9361-lpc");
|
m_devRx = iio_context_find_device(m_ctx, "cf-ad9361-lpc");
|
||||||
m_devTx = iio_context_find_device(m_ctx, "cf-ad9361-dds-core-lpc");
|
m_devTx = iio_context_find_device(m_ctx, "cf-ad9361-dds-core-lpc");
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
qCritical("DevicePlutoSDRBox::DevicePlutoSDRBox: cannot create context for uri: %s", uri.c_str());
|
||||||
|
}
|
||||||
|
|
||||||
m_valid = m_ctx && m_devPhy && m_devRx && m_devTx;
|
m_valid = m_ctx && m_devPhy && m_devRx && m_devTx;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user