From 9c9c96896cb38054e84213aa222883d34c7dd07b Mon Sep 17 00:00:00 2001 From: Josh Blum <josh@joshknows.com> Date: Mon, 22 Feb 2010 00:37:53 -0800 Subject: Made implementation class for the dboard manager. --- host/lib/usrp/usrp2/dboard_impl.cpp | 4 ++-- host/lib/usrp/usrp2/usrp2_impl.cpp | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'host/lib/usrp/usrp2') diff --git a/host/lib/usrp/usrp2/dboard_impl.cpp b/host/lib/usrp/usrp2/dboard_impl.cpp index b38a51b04..32c64f541 100644 --- a/host/lib/usrp/usrp2/dboard_impl.cpp +++ b/host/lib/usrp/usrp2/dboard_impl.cpp @@ -47,8 +47,8 @@ void usrp2_impl::dboard_init(void){ dboard_interface::sptr _dboard_interface( new usrp2_dboard_interface(this) ); - dboard_manager::sptr _dboard_manager( - new dboard_manager(rx_dboard_id, tx_dboard_id, _dboard_interface) + dboard_manager::sptr _dboard_manager = dboard_manager::make( + rx_dboard_id, tx_dboard_id, _dboard_interface ); //load dboards diff --git a/host/lib/usrp/usrp2/usrp2_impl.cpp b/host/lib/usrp/usrp2/usrp2_impl.cpp index ac0c3c88a..2b4e8fe39 100644 --- a/host/lib/usrp/usrp2/usrp2_impl.cpp +++ b/host/lib/usrp/usrp2/usrp2_impl.cpp @@ -90,9 +90,9 @@ device::sptr usrp2::make(const device_addr_t &device_addr){ ); //create the usrp2 implementation guts - return device::sptr(dynamic_cast<device*>( + return device::sptr( new usrp2_impl(ctrl_transport, data_transport) - )); + ); } /*********************************************************************** -- cgit v1.2.3