From ea4549f841c5921cd575171c868d291be4e8f8c0 Mon Sep 17 00:00:00 2001 From: Josh Blum Date: Fri, 11 May 2012 21:30:29 -0700 Subject: usrp1: ensure frontend specs are init'd to something This helps the case of 4x DDC no DUC for example, that way at least something empty is set to the property. --- host/lib/usrp/usrp1/usrp1_impl.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'host') diff --git a/host/lib/usrp/usrp1/usrp1_impl.cpp b/host/lib/usrp/usrp1/usrp1_impl.cpp index 1db2efa0d..30986ac66 100644 --- a/host/lib/usrp/usrp1/usrp1_impl.cpp +++ b/host/lib/usrp/usrp1/usrp1_impl.cpp @@ -279,8 +279,10 @@ usrp1_impl::usrp1_impl(const device_addr_t &device_addr){ // create frontend control objects //////////////////////////////////////////////////////////////////// _tree->create(mb_path / "rx_subdev_spec") + .set(subdev_spec_t()) .subscribe(boost::bind(&usrp1_impl::update_rx_subdev_spec, this, _1)); _tree->create(mb_path / "tx_subdev_spec") + .set(subdev_spec_t()) .subscribe(boost::bind(&usrp1_impl::update_tx_subdev_spec, this, _1)); BOOST_FOREACH(const std::string &db, _dbc.keys()){ -- cgit v1.2.3 From d8d749422b26f5a8161306fe74dbd37b0c560f97 Mon Sep 17 00:00:00 2001 From: Jason Abele Date: Mon, 14 May 2012 11:02:08 -0700 Subject: Throwing here causes difficulty initializing new USRPs --- host/lib/usrp/usrp2/clock_ctrl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'host') diff --git a/host/lib/usrp/usrp2/clock_ctrl.cpp b/host/lib/usrp/usrp2/clock_ctrl.cpp index 7d3ffefa2..b2912c70c 100644 --- a/host/lib/usrp/usrp2/clock_ctrl.cpp +++ b/host/lib/usrp/usrp2/clock_ctrl.cpp @@ -203,7 +203,7 @@ public: break; default: - throw uhd::not_implemented_error("enable_tx_dboard_clock: unknown hardware version"); + //throw uhd::not_implemented_error("enable_tx_dboard_clock: unknown hardware version"); break; } -- cgit v1.2.3