mirror of
				https://github.com/gnss-sdr/gnss-sdr
				synced 2025-10-31 07:13:03 +00:00 
			
		
		
		
	Adding UHD device filter by serial number option
This commit is contained in:
		| @@ -62,7 +62,12 @@ UhdSignalSource::UhdSignalSource(ConfigurationInterface* configuration, | ||||
|         { | ||||
|             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); | ||||
|     clock_source_ = configuration->property(role + ".clock_source", std::string("internal")); | ||||
|     RF_channels_ = configuration->property(role + ".RF_channels", 1); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Javier
					Javier