diff options
author | Josh Blum <josh@joshknows.com> | 2011-06-28 16:05:08 -0700 |
---|---|---|
committer | Josh Blum <josh@joshknows.com> | 2011-06-28 16:05:08 -0700 |
commit | 8308fb0eef44f3c4b8d349f7e7d7cdc11a0bd549 (patch) | |
tree | 18be22bcdb1834f911c2c6b180b1fa474b8405d8 /host/lib/usrp/dboard_manager.cpp | |
parent | b00e36521faccaacc3e2f818780010d8cfb1bbdf (diff) | |
download | uhd-8308fb0eef44f3c4b8d349f7e7d7cdc11a0bd549.tar.gz uhd-8308fb0eef44f3c4b8d349f7e7d7cdc11a0bd549.tar.bz2 uhd-8308fb0eef44f3c4b8d349f7e7d7cdc11a0bd549.zip |
usrp: got probe working w/ the new property tree
Diffstat (limited to 'host/lib/usrp/dboard_manager.cpp')
-rw-r--r-- | host/lib/usrp/dboard_manager.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/host/lib/usrp/dboard_manager.cpp b/host/lib/usrp/dboard_manager.cpp index bff55009e..b1c10e1c1 100644 --- a/host/lib/usrp/dboard_manager.cpp +++ b/host/lib/usrp/dboard_manager.cpp @@ -444,10 +444,10 @@ static std::vector<std::string> get_ants(wax::obj subdev){ static std::string get_conn(wax::obj subdev){ switch(subdev[SUBDEV_PROP_CONNECTION].as<subdev_conn_t>()){ - case SUBDEV_CONN_COMPLEX_IQ: return "iq"; - case SUBDEV_CONN_COMPLEX_QI: return "qi"; - case SUBDEV_CONN_REAL_I: return "i"; - case SUBDEV_CONN_REAL_Q: return "q"; + case SUBDEV_CONN_COMPLEX_IQ: return "IQ"; + case SUBDEV_CONN_COMPLEX_QI: return "QI"; + case SUBDEV_CONN_REAL_I: return "I"; + case SUBDEV_CONN_REAL_Q: return "Q"; } UHD_THROW_INVALID_CODE_PATH(); } @@ -480,6 +480,7 @@ void dboard_manager::populate_prop_tree_from_subdev( } const prop_names_t gain_names = subdev[SUBDEV_PROP_GAIN_NAMES].as<prop_names_t>(); + tree->create<int>(root / "gains"); //phony property so this dir exists BOOST_FOREACH(const std::string &name, gain_names){ tree->create<double>(root / "gains" / name / "value") .subscribe_master(boost::bind(&get_set_gain, subdev, name, _1)); |