diff options
author | Josh Morman <mormjb@gmail.com> | 2020-06-26 09:08:55 -0400 |
---|---|---|
committer | mormj <34754695+mormj@users.noreply.github.com> | 2020-08-14 05:44:26 -0400 |
commit | 0a89472e5235bb9d3b6872271c23cb167c5d430c (patch) | |
tree | 96369e7144fc962453690b5dc66221f9ae225aae /gr-uhd/python/uhd/bindings/docstrings/usrp_block_pydoc_template.h | |
parent | d6cb8d359d333c6f9af629bda5950db16d604ce5 (diff) |
uhd: wrap get_usrp_info to compatible return type
- Move get_usrp_info() to usrp_block
- Casts the return value to std::map so PyBind11 can turn it into
a dictionary in Python
This fixes an issue where get_usrp_info() would cause an Exception with
PyBind11.
Co-authored-by: Martin Braun <martin.braun@ettus.com>
Diffstat (limited to 'gr-uhd/python/uhd/bindings/docstrings/usrp_block_pydoc_template.h')
-rw-r--r-- | gr-uhd/python/uhd/bindings/docstrings/usrp_block_pydoc_template.h | 3 |
1 files changed, 3 insertions, 0 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 3ef0dd728b..ed951cc3a3 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 @@ -186,6 +186,9 @@ static const char* __doc_gr_uhd_usrp_block_set_filter = R"doc()doc"; static const char* __doc_gr_uhd_usrp_block_get_filter = R"doc()doc"; +static const char* __doc_gr_uhd_usrp_block_get_usrp_info = R"doc()doc"; + + static const char* __doc_gr_uhd_cmd_chan_key = R"doc()doc"; |