diff options
author | Josh Blum <josh@joshknows.com> | 2010-10-28 18:34:04 -0700 |
---|---|---|
committer | Josh Blum <josh@joshknows.com> | 2010-10-28 18:34:04 -0700 |
commit | 92b5034cb5a6e17fe7ebc437f7ef26147d69eba3 (patch) | |
tree | 57aaeb9964b9d990510aa5cf4a72d67581f0129b /host/lib/usrp/misc_utils.cpp | |
parent | f9edd3865ca0f61a9e80fd917521b49292d5ecb1 (diff) | |
parent | a8d2c2944b329218af1c0b171b92f775b679b409 (diff) | |
download | uhd-92b5034cb5a6e17fe7ebc437f7ef26147d69eba3.tar.gz uhd-92b5034cb5a6e17fe7ebc437f7ef26147d69eba3.tar.bz2 uhd-92b5034cb5a6e17fe7ebc437f7ef26147d69eba3.zip |
Merge branch 'master' into flow_ctrl
Diffstat (limited to 'host/lib/usrp/misc_utils.cpp')
-rw-r--r-- | host/lib/usrp/misc_utils.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/host/lib/usrp/misc_utils.cpp b/host/lib/usrp/misc_utils.cpp index 7e49baa52..5856d706f 100644 --- a/host/lib/usrp/misc_utils.cpp +++ b/host/lib/usrp/misc_utils.cpp @@ -164,13 +164,13 @@ static void verify_xx_subdev_spec( } //sanity check that the dboard/subdevice names exist for this mboard - BOOST_FOREACH(const subdev_spec_pair_t &pair, subdev_spec){ + BOOST_FOREACH(subdev_spec_pair_t &pair, subdev_spec){ //empty db name means select dboard automatically if (pair.db_name.empty()){ if (dboard_names.size() != 1) throw std::runtime_error( "A daughterboard name must be provided for multi-slot motherboards: " + subdev_spec.to_string() ); - pair.db_name == dboard_names.front(); + pair.db_name = dboard_names.front(); } uhd::assert_has(dboard_names, pair.db_name, xx_type + " dboard name"); wax::obj dboard = mboard[named_prop_t(dboard_prop, pair.db_name)]; @@ -181,7 +181,7 @@ static void verify_xx_subdev_spec( if (subdev_names.size() != 1) throw std::runtime_error( "A subdevice name must be provided for multi-subdev daughterboards: " + subdev_spec.to_string() ); - pair.sd_name == subdev_names.front(); + pair.sd_name = subdev_names.front(); } uhd::assert_has(subdev_names, pair.sd_name, xx_type + " subdev name"); } |