diff options
author | Josh Blum <josh@joshknows.com> | 2010-03-16 13:49:39 -0700 |
---|---|---|
committer | Josh Blum <josh@joshknows.com> | 2010-03-16 13:49:39 -0700 |
commit | 8be3b883f5b1a889f4f07611e8954449cc07c2b3 (patch) | |
tree | 0622e8702105a6e43569b902b16700a0072d4cbd /host/lib/usrp/dboard_manager.cpp | |
parent | fc40ff2f1327d01c72c4d7dbc07a14e473251981 (diff) | |
download | uhd-8be3b883f5b1a889f4f07611e8954449cc07c2b3.tar.gz uhd-8be3b883f5b1a889f4f07611e8954449cc07c2b3.tar.bz2 uhd-8be3b883f5b1a889f4f07611e8954449cc07c2b3.zip |
Added ability to set the subdevices in use for rx and tx dboards.
This is used to calculate and set the ddc and duc muxes.
Also, minor fix for burning addrs (wrong pointer....)
Diffstat (limited to 'host/lib/usrp/dboard_manager.cpp')
-rw-r--r-- | host/lib/usrp/dboard_manager.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/host/lib/usrp/dboard_manager.cpp b/host/lib/usrp/dboard_manager.cpp index eeabbda99..6ca15e98c 100644 --- a/host/lib/usrp/dboard_manager.cpp +++ b/host/lib/usrp/dboard_manager.cpp @@ -46,7 +46,7 @@ void dboard_manager::register_dboard( //std::cout << "registering: " << name << std::endl; if (get_id_to_args_map().has_key(dboard_id)){ throw std::runtime_error(str(boost::format( - "The dboard id 0x%.4x is already registered to %s." + "The dboard id 0x%04x is already registered to %s." ) % dboard_id % dboard_id::to_string(dboard_id))); } get_id_to_args_map()[dboard_id] = args_t(dboard_ctor, name, subdev_names); @@ -54,7 +54,7 @@ void dboard_manager::register_dboard( std::string dboard_id::to_string(const dboard_id_t &id){ std::string name = (get_id_to_args_map().has_key(id))? get_id_to_args_map()[id].get<1>() : "unknown"; - return str(boost::format("%s (0x%.4x)") % name % id); + return str(boost::format("%s (0x%04x)") % name % id); } /*********************************************************************** |