forked from sdr/gr-osmosdr
soapy: added device::find() support
Was missing from the implementation. Now devices with a label show up nicely in GQRX
This commit is contained in:
parent
ae686c462d
commit
3511defbf4
|
@ -78,6 +78,10 @@
|
||||||
#include <airspy_source_c.h>
|
#include <airspy_source_c.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef ENABLE_SOAPY
|
||||||
|
#include <soapy_source_c.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef ENABLE_REDPITAYA
|
#ifdef ENABLE_REDPITAYA
|
||||||
#include <redpitaya_source_c.h>
|
#include <redpitaya_source_c.h>
|
||||||
#endif
|
#endif
|
||||||
|
@ -178,6 +182,10 @@ devices_t device::find(const device_t &hint)
|
||||||
BOOST_FOREACH( std::string dev, airspy_source_c::get_devices() )
|
BOOST_FOREACH( std::string dev, airspy_source_c::get_devices() )
|
||||||
devices.push_back( device_t(dev) );
|
devices.push_back( device_t(dev) );
|
||||||
#endif
|
#endif
|
||||||
|
#ifdef ENABLE_SOAPY
|
||||||
|
BOOST_FOREACH( std::string dev, soapy_source_c::get_devices() )
|
||||||
|
devices.push_back( device_t(dev) );
|
||||||
|
#endif
|
||||||
|
|
||||||
/* software-only sources should be appended at the very end,
|
/* software-only sources should be appended at the very end,
|
||||||
* hopefully resulting in hardware sources to be shown first
|
* hopefully resulting in hardware sources to be shown first
|
||||||
|
|
Loading…
Reference in New Issue