summaryrefslogtreecommitdiff
path: root/gr-uhd/lib/uhd_single_usrp_source.cc
diff options
context:
space:
mode:
Diffstat (limited to 'gr-uhd/lib/uhd_single_usrp_source.cc')
-rw-r--r--gr-uhd/lib/uhd_single_usrp_source.cc10
1 files changed, 6 insertions, 4 deletions
diff --git a/gr-uhd/lib/uhd_single_usrp_source.cc b/gr-uhd/lib/uhd_single_usrp_source.cc
index 13e4d6d43c..5da4385b25 100644
--- a/gr-uhd/lib/uhd_single_usrp_source.cc
+++ b/gr-uhd/lib/uhd_single_usrp_source.cc
@@ -39,8 +39,9 @@ class uhd_single_usrp_source_impl : public uhd_single_usrp_source{
public:
uhd_single_usrp_source_impl(
const std::string &args,
- const uhd::io_type_t &type
- ) : uhd_single_usrp_source(gr_make_io_signature(1, 1, type.size)), _type(type)
+ const uhd::io_type_t &type,
+ size_t num_channels
+ ) : uhd_single_usrp_source(gr_make_io_signature(num_channels, num_channels, type.size)), _type(type)
{
_dev = uhd::usrp::single_usrp::make(args);
set_streaming(false);
@@ -157,9 +158,10 @@ private:
**********************************************************************/
boost::shared_ptr<uhd_single_usrp_source> uhd_make_single_usrp_source(
const std::string &args,
- const uhd::io_type_t::tid_t &type
+ const uhd::io_type_t::tid_t &type,
+ size_t num_channels
){
return boost::shared_ptr<uhd_single_usrp_source>(
- new uhd_single_usrp_source_impl(args, type)
+ new uhd_single_usrp_source_impl(args, type, num_channels)
);
}