diff options
author | Lane Kolbly <lane.kolbly@ni.com> | 2021-11-03 10:11:47 -0500 |
---|---|---|
committer | Aaron Rossetto <aaron.rossetto@ni.com> | 2021-11-04 11:33:34 -0700 |
commit | 2a3cd5d9a4528a11e25935ae0dc397ce1530868e (patch) | |
tree | bfa9cd0372230f4523ed98562f441f2d28cc7267 /host/lib | |
parent | ae12c802e7d37b2299add50c3e6f00d3a351adc8 (diff) | |
download | uhd-2a3cd5d9a4528a11e25935ae0dc397ce1530868e.tar.gz uhd-2a3cd5d9a4528a11e25935ae0dc397ce1530868e.tar.bz2 uhd-2a3cd5d9a4528a11e25935ae0dc397ce1530868e.zip |
host: python: Return mb_controller with reference_internal
Diffstat (limited to 'host/lib')
-rw-r--r-- | host/lib/usrp/multi_usrp_python.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/host/lib/usrp/multi_usrp_python.cpp b/host/lib/usrp/multi_usrp_python.cpp index 6e1246924..148e0586f 100644 --- a/host/lib/usrp/multi_usrp_python.cpp +++ b/host/lib/usrp/multi_usrp_python.cpp @@ -91,7 +91,7 @@ void export_multi_usrp(py::module& m) .def("get_mboard_sensor_names" , &multi_usrp::get_mboard_sensor_names, py::arg("mboard") = 0) .def("set_user_register" , &multi_usrp::set_user_register, py::arg("addr"), py::arg("data"), py::arg("mboard") = ALL_MBOARDS) .def("get_radio_control" , [](multi_usrp& self, const size_t chan){ return &self.get_radio_control(chan); }, py::arg("chan") = 0, py::return_value_policy::reference_internal) - .def("get_mb_controller" , &multi_usrp::get_mb_controller, py::arg("mboard") = 0) + .def("get_mb_controller" , [](multi_usrp& self, const size_t chan){ return &self.get_mb_controller(chan); }, py::arg("mboard") = 0, py::return_value_policy::reference_internal) // RX methods .def("set_rx_subdev_spec" , &multi_usrp::set_rx_subdev_spec, py::arg("spec"), py::arg("mboard") = ALL_MBOARDS) |