diff options
author | Martin Braun <martin.braun@ettus.com> | 2017-11-08 16:10:13 -0800 |
---|---|---|
committer | Martin Braun <martin.braun@ettus.com> | 2017-12-22 15:05:05 -0800 |
commit | 16da5da375a5f28f5ba55968b4d4610e3d259ddf (patch) | |
tree | 72cfdcd1f152e295ba83c92ffe88a9213aff3b1e /mpm/python/usrp_hwd.py | |
parent | a972069f07e1cc5068ee5be7e9e31da39d46490b (diff) | |
download | uhd-16da5da375a5f28f5ba55968b4d4610e3d259ddf.tar.gz uhd-16da5da375a5f28f5ba55968b4d4610e3d259ddf.tar.bz2 uhd-16da5da375a5f28f5ba55968b4d4610e3d259ddf.zip |
mpm: Remove leading _ from _get_device_info()
Use @norpc instead. This fixes some linting issues.
Diffstat (limited to 'mpm/python/usrp_hwd.py')
-rwxr-xr-x | mpm/python/usrp_hwd.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mpm/python/usrp_hwd.py b/mpm/python/usrp_hwd.py index 48af28d36..90f865da0 100755 --- a/mpm/python/usrp_hwd.py +++ b/mpm/python/usrp_hwd.py @@ -123,8 +123,8 @@ def main(): log.info("Spawning periph manager...") mgr = periph_manager(args) discovery_info = { - "type": mgr._get_device_info()["type"], - "serial": mgr._get_device_info()["serial"] + "type": mgr.get_device_info().get("type", "n/a"), + "serial": mgr.get_device_info().get("serial", "n/a") } if args.init_only: mgr.init(args.default_args) |