From 40235b8c5aba6acec2acdc4135b828b1d9785a96 Mon Sep 17 00:00:00 2001 From: Martin Braun Date: Sat, 3 Jun 2017 01:33:54 -0700 Subject: mpm/mpmd: Call init() during UHD session init, not on hwd spawn --- mpm/python/usrp_hwd.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'mpm/python/usrp_hwd.py') diff --git a/mpm/python/usrp_hwd.py b/mpm/python/usrp_hwd.py index 27c2870df..8abc89923 100755 --- a/mpm/python/usrp_hwd.py +++ b/mpm/python/usrp_hwd.py @@ -115,8 +115,8 @@ def main(): "type": mgr._get_device_info()["type"], "serial": mgr._get_device_info()["serial"] } - mgr.init(args.default_args) # TODO really this should be called by the UHD session if args.init_only: + mgr.init(args.default_args) log.info("Terminating on user request before launching RPC server.") mgr.deinit() return True @@ -130,7 +130,6 @@ def main(): signal.signal(signal.SIGTERM, kill_time) signal.signal(signal.SIGINT, kill_time) signal.pause() - mgr.deinit() # TODO Really this should be called when a device is unclaimed return True if __name__ == '__main__': -- cgit v1.2.3