mirror of
https://github.com/gnss-sdr/gnss-sdr
synced 2025-06-25 22:52:52 +00:00
Adding UHD device filter by serial number option
This commit is contained in:
parent
9c65531fed
commit
f69cc2491c
@ -62,7 +62,12 @@ UhdSignalSource::UhdSignalSource(ConfigurationInterface* configuration,
|
|||||||
{
|
{
|
||||||
dev_addr["addr"] = device_address_;
|
dev_addr["addr"] = device_address_;
|
||||||
}
|
}
|
||||||
|
//filter the device by serial number if required (useful for USB devices)
|
||||||
|
std::string device_serial = configuration->property(role + ".device_serial", empty);
|
||||||
|
if (empty.compare(device_serial) != 0) // if not empty
|
||||||
|
{
|
||||||
|
dev_addr["serial"] = device_serial;
|
||||||
|
}
|
||||||
subdevice_ = configuration->property(role + ".subdevice", empty);
|
subdevice_ = configuration->property(role + ".subdevice", empty);
|
||||||
clock_source_ = configuration->property(role + ".clock_source", std::string("internal"));
|
clock_source_ = configuration->property(role + ".clock_source", std::string("internal"));
|
||||||
RF_channels_ = configuration->property(role + ".RF_channels", 1);
|
RF_channels_ = configuration->property(role + ".RF_channels", 1);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user