aboutsummaryrefslogtreecommitdiffstats
path: root/host
diff options
context:
space:
mode:
authorMartin Anderseck <martin.anderseck@ni.com>2021-09-07 14:59:08 +0200
committerAaron Rossetto <aaron.rossetto@ni.com>2021-09-08 11:54:19 -0500
commitdeb92f20f05b4a0d8e2da644f078fad612f07027 (patch)
tree891514dc7dd13063df3aec071e1bdd479b4e15fa /host
parentb2ed6640fd08d9600961a7cf9be8172e70f43926 (diff)
downloaduhd-deb92f20f05b4a0d8e2da644f078fad612f07027.tar.gz
uhd-deb92f20f05b4a0d8e2da644f078fad612f07027.tar.bz2
uhd-deb92f20f05b4a0d8e2da644f078fad612f07027.zip
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.
Diffstat (limited to 'host')
-rw-r--r--host/lib/usrp/multi_usrp_python.cpp2
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 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<double>&, 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<double>&, 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)