mirror of
https://github.com/saymrwulf/uhd.git
synced 2026-05-16 21:10:10 +00:00
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.
This commit is contained in:
parent
19cdfb4148
commit
b3662efeb3
1 changed files with 9 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue