diff options
author | Martin Braun <martin.braun@ettus.com> | 2017-11-28 18:02:33 -0800 |
---|---|---|
committer | Martin Braun <martin.braun@ettus.com> | 2017-12-22 15:05:57 -0800 |
commit | b3662efeb3aa82cdfa08bc70af4670bca2aa2b8d (patch) | |
tree | ad414ed257476366e3cf481441a077cd47a4b56e | |
parent | 19cdfb4148338a94bdc75194e0fadad993c37758 (diff) | |
download | uhd-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.
-rw-r--r-- | mpm/python/usrp_mpm/rpc_server.py | 9 |
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 |