PlutoSDR: clear the device scan list before (re)scanning

This commit is contained in:
f4exb 2017-09-19 23:11:03 +02:00
parent dc0d9d9e0a
commit e4c1892930
3 changed files with 4 additions and 2 deletions

View File

@ -44,6 +44,8 @@ void DevicePlutoSDRScan::scan()
return;
}
m_scans.clear();
for (i = 0; i < num_contexts; i++)
{
const char *description = iio_context_info_get_description(info[i]);

View File

@ -35,7 +35,7 @@ const PluginDescriptor PlutoSDROutputPlugin::m_pluginDescriptor = {
QString("https://github.com/f4exb/sdrangel")
};
const QString PlutoSDROutputPlugin::m_hardwareID = "PlutosDR";
const QString PlutoSDROutputPlugin::m_hardwareID = "PlutoSDR";
const QString PlutoSDROutputPlugin::m_deviceTypeID = PLUTOSDR_DEVICE_TYPE_ID;
PlutoSDROutputPlugin::PlutoSDROutputPlugin(QObject* parent) :

View File

@ -35,7 +35,7 @@ const PluginDescriptor PlutoSDRInputPlugin::m_pluginDescriptor = {
QString("https://github.com/f4exb/sdrangel")
};
const QString PlutoSDRInputPlugin::m_hardwareID = "PlutosDR";
const QString PlutoSDRInputPlugin::m_hardwareID = "PlutoSDR";
const QString PlutoSDRInputPlugin::m_deviceTypeID = PLUTOSDR_DEVICE_TYPE_ID;
PlutoSDRInputPlugin::PlutoSDRInputPlugin(QObject* parent) :