diff options
author | Josh Blum <josh@joshknows.com> | 2011-08-18 10:11:57 -0700 |
---|---|---|
committer | Josh Blum <josh@joshknows.com> | 2011-08-18 10:11:57 -0700 |
commit | 93aee136535aa77348d3b7f3520f066a4167126d (patch) | |
tree | d0456ba32e274426ffcbde7861ea23bef83fa9d9 /host/lib/usrp/dboard_manager.cpp | |
parent | 8315ab86b172b21f24ecf84ce472bcaffe245f99 (diff) | |
download | uhd-93aee136535aa77348d3b7f3520f066a4167126d.tar.gz uhd-93aee136535aa77348d3b7f3520f066a4167126d.tar.bz2 uhd-93aee136535aa77348d3b7f3520f066a4167126d.zip |
usrp: dboard sensors fix, populate for tvrx, and should be empty on basics/unknown
Diffstat (limited to 'host/lib/usrp/dboard_manager.cpp')
-rw-r--r-- | host/lib/usrp/dboard_manager.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/host/lib/usrp/dboard_manager.cpp b/host/lib/usrp/dboard_manager.cpp index 3f4b5a511..0326c28ce 100644 --- a/host/lib/usrp/dboard_manager.cpp +++ b/host/lib/usrp/dboard_manager.cpp @@ -483,6 +483,7 @@ void dboard_manager::populate_prop_tree_from_subdev( subtree->create<std::string>("name").set(subdev[SUBDEV_PROP_NAME].as<std::string>()); const prop_names_t sensor_names = subdev[SUBDEV_PROP_SENSOR_NAMES].as<prop_names_t>(); + subtree->create<int>("sensors"); //phony property so this dir exists BOOST_FOREACH(const std::string &name, sensor_names){ subtree->create<sensor_value_t>("sensors/" + name) .publish(boost::bind(&get_sensor, subdev, name)); |