1
0
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:
f4exb 2020-08-17 13:46:46 +02:00
parent 7eb5b762b0
commit 843c67a5b0

View File

@ -56,6 +56,10 @@ DevicePlutoSDRBox::DevicePlutoSDRBox(const std::string& uri) :
m_devRx = iio_context_find_device(m_ctx, "cf-ad9361-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;