aboutsummaryrefslogtreecommitdiffstats
path: root/host/examples
diff options
context:
space:
mode:
authorMartin Braun <martin.braun@ettus.com>2016-06-22 20:01:42 -0700
committerMartin Braun <martin.braun@ettus.com>2016-06-23 09:58:20 -0700
commitef57ffcbbf33f16d4fecb73749e3bb0fc4cd473d (patch)
tree6342382f3d1c45fc5c83ca36fed24a2d4a173aff /host/examples
parentfd9dc3f2be1e8056a1355351b97c7d40e9bd2d1f (diff)
parent9caf20c29956be283b032110096a81f99a121da7 (diff)
downloaduhd-ef57ffcbbf33f16d4fecb73749e3bb0fc4cd473d.tar.gz
uhd-ef57ffcbbf33f16d4fecb73749e3bb0fc4cd473d.tar.bz2
uhd-ef57ffcbbf33f16d4fecb73749e3bb0fc4cd473d.zip
Merge branch 'maint'
Conflicts: host/lib/usrp/b200/b200_impl.cpp
Diffstat (limited to 'host/examples')
-rw-r--r--host/examples/rx_samples_to_udp.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/host/examples/rx_samples_to_udp.cpp b/host/examples/rx_samples_to_udp.cpp
index 9a8a3f4ac..a3f5624ca 100644
--- a/host/examples/rx_samples_to_udp.cpp
+++ b/host/examples/rx_samples_to_udp.cpp
@@ -74,6 +74,11 @@ int UHD_SAFE_MAIN(int argc, char *argv[]){
//Lock mboard clocks
usrp->set_clock_source(ref);
+ //always select the subdevice first, the channel mapping affects the other settings
+ if (vm.count("subdev")) {
+ usrp->set_rx_subdev_spec(subdev);
+ }
+
//set the rx sample rate
std::cout << boost::format("Setting RX Rate: %f Msps...") % (rate/1e6) << std::endl;
usrp->set_rx_rate(rate);