From deb92f20f05b4a0d8e2da644f078fad612f07027 Mon Sep 17 00:00:00 2001 From: Martin Anderseck Date: Tue, 7 Sep 2021 14:59:08 +0200 Subject: python: multi_usrp: Fix overloaded function definition Fix function definition set_rx_iq_balance so that Python can reach the overloaded C++ function. There was a copy & paste error in there. --- host/lib/usrp/multi_usrp_python.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'host/lib/usrp') diff --git a/host/lib/usrp/multi_usrp_python.cpp b/host/lib/usrp/multi_usrp_python.cpp index b26671760..6e1246924 100644 --- a/host/lib/usrp/multi_usrp_python.cpp +++ b/host/lib/usrp/multi_usrp_python.cpp @@ -129,7 +129,7 @@ void export_multi_usrp(py::module& m) .def("set_rx_dc_offset" , (void (multi_usrp::*)(const std::complex&, size_t)) &multi_usrp::set_rx_dc_offset, py::arg("offset"), py::arg("chan") = 0) .def("set_rx_dc_offset" , (void (multi_usrp::*)(bool, size_t)) &multi_usrp::set_rx_dc_offset, py::arg("enb"), py::arg("chan") = 0) .def("set_rx_iq_balance" , (void (multi_usrp::*)(const std::complex&, size_t)) &multi_usrp::set_rx_iq_balance, py::arg("correction"), py::arg("chan") = 0) - .def("set_rx_iq_balance" , (void (multi_usrp::*)(bool, size_t)) &multi_usrp::set_rx_dc_offset, py::arg("enb"), py::arg("chan") = 0) + .def("set_rx_iq_balance" , (void (multi_usrp::*)(bool, size_t)) &multi_usrp::set_rx_iq_balance, py::arg("enb"), py::arg("chan") = 0) .def("get_rx_gain_profile" , &multi_usrp::get_rx_gain_profile, py::arg("chan") = 0) .def("set_rx_gain_profile" , &multi_usrp::set_rx_gain_profile, py::arg("profile"), py::arg("chan") = 0) .def("get_rx_gain_profile_names", &multi_usrp::get_rx_gain_profile_names, py::arg("chan") = 0) -- cgit v1.2.3