1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-12-23 01:55:48 -05:00

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; return;
} }
m_scans.clear();
for (i = 0; i < num_contexts; i++) for (i = 0; i < num_contexts; i++)
{ {
const char *description = iio_context_info_get_description(info[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") 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; const QString PlutoSDROutputPlugin::m_deviceTypeID = PLUTOSDR_DEVICE_TYPE_ID;
PlutoSDROutputPlugin::PlutoSDROutputPlugin(QObject* parent) : PlutoSDROutputPlugin::PlutoSDROutputPlugin(QObject* parent) :

View File

@ -35,7 +35,7 @@ const PluginDescriptor PlutoSDRInputPlugin::m_pluginDescriptor = {
QString("https://github.com/f4exb/sdrangel") 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; const QString PlutoSDRInputPlugin::m_deviceTypeID = PLUTOSDR_DEVICE_TYPE_ID;
PlutoSDRInputPlugin::PlutoSDRInputPlugin(QObject* parent) : PlutoSDRInputPlugin::PlutoSDRInputPlugin(QObject* parent) :