Browse Source

PlutoSDR: emit critical log message if context cannot be created

chirpmodem-v8.0.0
f4exb 6 years ago
parent
commit
843c67a5b0
  1. 4
      devices/plutosdr/deviceplutosdrbox.cpp

4
devices/plutosdr/deviceplutosdrbox.cpp

@ -56,6 +56,10 @@ DevicePlutoSDRBox::DevicePlutoSDRBox(const std::string& uri) : @@ -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;

Loading…
Cancel
Save