aboutsummaryrefslogtreecommitdiffstats
path: root/mpm/python/usrp_hwd.py
diff options
context:
space:
mode:
Diffstat (limited to 'mpm/python/usrp_hwd.py')
-rwxr-xr-xmpm/python/usrp_hwd.py3
1 files changed, 1 insertions, 2 deletions
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__':