aboutsummaryrefslogtreecommitdiffstats
path: root/mpm/python/usrp_hwd.py
diff options
context:
space:
mode:
authorMartin Braun <martin.braun@ettus.com>2017-06-03 01:33:54 -0700
committerMartin Braun <martin.braun@ettus.com>2017-12-22 15:03:59 -0800
commit40235b8c5aba6acec2acdc4135b828b1d9785a96 (patch)
tree6570aa9f99872979e51106f5249fe82080c611dc /mpm/python/usrp_hwd.py
parent0d659863da607acaaf15ab69a662af2da006f65e (diff)
downloaduhd-40235b8c5aba6acec2acdc4135b828b1d9785a96.tar.gz
uhd-40235b8c5aba6acec2acdc4135b828b1d9785a96.tar.bz2
uhd-40235b8c5aba6acec2acdc4135b828b1d9785a96.zip
mpm/mpmd: Call init() during UHD session init, not on hwd spawn
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__':