aboutsummaryrefslogtreecommitdiffstats
path: root/mpm
diff options
context:
space:
mode:
authorMartin Braun <martin.braun@ettus.com>2017-11-28 18:02:33 -0800
committerMartin Braun <martin.braun@ettus.com>2017-12-22 15:05:57 -0800
commitb3662efeb3aa82cdfa08bc70af4670bca2aa2b8d (patch)
treead414ed257476366e3cf481441a077cd47a4b56e /mpm
parent19cdfb4148338a94bdc75194e0fadad993c37758 (diff)
downloaduhd-b3662efeb3aa82cdfa08bc70af4670bca2aa2b8d.tar.gz
uhd-b3662efeb3aa82cdfa08bc70af4670bca2aa2b8d.tar.bz2
uhd-b3662efeb3aa82cdfa08bc70af4670bca2aa2b8d.zip
mpm: Add temporary failure for FPGA reload
Note: This is subject to removal, but makes the FPGA reloading code available to all until we fix the reload bug.
Diffstat (limited to 'mpm')
-rw-r--r--mpm/python/usrp_mpm/rpc_server.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/mpm/python/usrp_mpm/rpc_server.py b/mpm/python/usrp_mpm/rpc_server.py
index 38c9107ee..086ba5812 100644
--- a/mpm/python/usrp_mpm/rpc_server.py
+++ b/mpm/python/usrp_mpm/rpc_server.py
@@ -306,9 +306,18 @@ class MPMServer(RPCServer):
try:
self.log.trace("Reset after updating component? {}".format(reset_now))
if reset_now:
+ # TODO remove this hellspawn
+ self.log.error("Exiting now because you know we have this " \
+ "bug we haven't fixed yet. Just respawn MPM "\
+ "manually for now. Sorry about this. Ahem. " \
+ "Please hit Ctrl-C now.")
+ self.log.critical("Seriously, hit Ctrl-C.")
+ assert False
+ # End of evil code (at least, *this* evil code)
self.reset_mgr()
self.log.debug("Reset the periph manager")
except Exception as ex:
+ raise # This is also part of the evilness TODO remove
self.log.error(
"Error in update_component while resetting: {}".format(
ex