diff options
author | Martin Braun <martin.braun@ettus.com> | 2019-02-27 13:09:32 -0800 |
---|---|---|
committer | Martin Braun <martin.braun@ettus.com> | 2019-02-28 09:49:19 -0800 |
commit | a3213183dcf3f5a4e88adbc1f6cbf5187f421027 (patch) | |
tree | 02ebe69ff919fe3096e48ed88b13ea6106b49dbf | |
parent | ae36d1b1a9573ce1ed089c282e91e1d4cbc47f2b (diff) | |
download | uhd-a3213183dcf3f5a4e88adbc1f6cbf5187f421027.tar.gz uhd-a3213183dcf3f5a4e88adbc1f6cbf5187f421027.tar.bz2 uhd-a3213183dcf3f5a4e88adbc1f6cbf5187f421027.zip |
fixup! python: Replace Boost.Python with PyBind11
TuneRequest() was not set up to handle an optional second argument in
the constructor.
-rw-r--r-- | host/lib/types/tune_python.hpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/host/lib/types/tune_python.hpp b/host/lib/types/tune_python.hpp index 6c3607908..d345b384c 100644 --- a/host/lib/types/tune_python.hpp +++ b/host/lib/types/tune_python.hpp @@ -25,6 +25,7 @@ void export_tune(py::module& m) py::class_<tune_request_t>(m, "tune_request") .def(py::init<double, double>()) + .def(py::init<double>(), py::arg("target_freq")=0.0) .def_readwrite("target_freq" , &tune_request_t::target_freq ) .def_readwrite("rf_freq_policy" , &tune_request_t::rf_freq_policy ) .def_readwrite("dsp_freq_policy", &tune_request_t::dsp_freq_policy) |