From 16da5da375a5f28f5ba55968b4d4610e3d259ddf Mon Sep 17 00:00:00 2001 From: Martin Braun Date: Wed, 8 Nov 2017 16:10:13 -0800 Subject: mpm: Remove leading _ from _get_device_info() Use @norpc instead. This fixes some linting issues. --- mpm/python/usrp_hwd.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'mpm/python/usrp_hwd.py') 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) -- cgit v1.2.3