1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-11-26 01:39:05 -05:00

Added more debug messages in device enumeration

This commit is contained in:
f4exb 2019-06-26 17:44:44 +02:00
parent 2961fbccb3
commit 7559330482
2 changed files with 4 additions and 1 deletions

View File

@ -58,7 +58,7 @@ void Blderf1InputPlugin::initPlugin(PluginAPI* pluginAPI)
PluginInterface::SamplingDevices Blderf1InputPlugin::enumSampleSources()
{
SamplingDevices result;
struct bladerf_devinfo *devinfo = 0;
struct bladerf_devinfo *devinfo = nullptr;
int count = bladerf_get_device_list(&devinfo);

View File

@ -40,6 +40,7 @@ void DeviceEnumerator::enumerateRxDevices(PluginManager *pluginManager)
for (int i = 0; i < rxDeviceRegistrations.count(); i++)
{
qDebug("DeviceEnumerator::enumerateRxDevices: %s", qPrintable(rxDeviceRegistrations[i].m_deviceId));
PluginInterface::SamplingDevices samplingDevices = rxDeviceRegistrations[i].m_plugin->enumSampleSources();
for (int j = 0; j < samplingDevices.count(); j++)
@ -64,6 +65,7 @@ void DeviceEnumerator::enumerateTxDevices(PluginManager *pluginManager)
for (int i = 0; i < txDeviceRegistrations.count(); i++)
{
qDebug("DeviceEnumerator::enumerateTxDevices: %s", qPrintable(txDeviceRegistrations[i].m_deviceId));
PluginInterface::SamplingDevices samplingDevices = txDeviceRegistrations[i].m_plugin->enumSampleSinks();
for (int j = 0; j < samplingDevices.count(); j++)
@ -88,6 +90,7 @@ void DeviceEnumerator::enumerateMIMODevices(PluginManager *pluginManager)
for (int i = 0; i < mimoDeviceRegistrations.count(); i++)
{
qDebug("DeviceEnumerator::enumerateMIMODevices: %s", qPrintable(mimoDeviceRegistrations[i].m_deviceId));
PluginInterface::SamplingDevices samplingDevices = mimoDeviceRegistrations[i].m_plugin->enumSampleMIMO();
for (int j = 0; j < samplingDevices.count(); j++)