diff options
author | Jacob Gilbert <jacob.gilbert@protonmail.com> | 2021-03-29 21:09:23 -0600 |
---|---|---|
committer | mormj <34754695+mormj@users.noreply.github.com> | 2021-04-05 07:28:48 -0400 |
commit | 8b23f906844c9784c784934ae06dfdfe10d31a1f (patch) | |
tree | f2a1934c144d849f9273e919a533d13433efe787 /gr-uhd/python/uhd | |
parent | deb4c4dd97cb668b399496d8edab2cfa8d69f85b (diff) |
gr-uhd: update direction key naming
The 'ant_direction_' key getters have been reappropriated for wider
use, changing to general 'direction_' and a few minor simplifications.
Signed-off-by: Jacob Gilbert <jacob.gilbert@protonmail.com>
Diffstat (limited to 'gr-uhd/python/uhd')
-rw-r--r-- | gr-uhd/python/uhd/bindings/docstrings/usrp_block_pydoc_template.h | 4 | ||||
-rw-r--r-- | gr-uhd/python/uhd/bindings/usrp_block_python.cc | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/gr-uhd/python/uhd/bindings/docstrings/usrp_block_pydoc_template.h b/gr-uhd/python/uhd/bindings/docstrings/usrp_block_pydoc_template.h index 6f792dae49..58946334d9 100644 --- a/gr-uhd/python/uhd/bindings/docstrings/usrp_block_pydoc_template.h +++ b/gr-uhd/python/uhd/bindings/docstrings/usrp_block_pydoc_template.h @@ -246,7 +246,7 @@ static const char* __doc_gr_uhd_cmd_direction_key = R"doc()doc"; static const char* __doc_gr_uhd_cmd_tag_key = R"doc()doc"; -static const char* __doc_gr_uhd_ant_direction_rx = R"doc()doc"; +static const char* __doc_gr_uhd_direction_rx = R"doc()doc"; -static const char* __doc_gr_uhd_ant_direction_tx = R"doc()doc"; +static const char* __doc_gr_uhd_direction_tx = R"doc()doc"; diff --git a/gr-uhd/python/uhd/bindings/usrp_block_python.cc b/gr-uhd/python/uhd/bindings/usrp_block_python.cc index 18948175b8..5f15a14f8f 100644 --- a/gr-uhd/python/uhd/bindings/usrp_block_python.cc +++ b/gr-uhd/python/uhd/bindings/usrp_block_python.cc @@ -476,8 +476,8 @@ void bind_usrp_block(py::module& m) m.def("cmd_tag_key", &::gr::uhd::cmd_tag_key, D(cmd_tag_key)); - m.def("ant_direction_rx", &::gr::uhd::ant_direction_rx, D(ant_direction_rx)); + m.def("direction_rx", &::gr::uhd::direction_rx, D(direction_rx)); - m.def("ant_direction_tx", &::gr::uhd::ant_direction_tx, D(ant_direction_tx)); + m.def("direction_tx", &::gr::uhd::direction_tx, D(direction_tx)); } |