diff options
Diffstat (limited to 'mpm/python/usrp_mpm/liberiotable.py')
-rw-r--r-- | mpm/python/usrp_mpm/liberiotable.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/mpm/python/usrp_mpm/liberiotable.py b/mpm/python/usrp_mpm/liberiotable.py index be19c7c17..cc848d570 100644 --- a/mpm/python/usrp_mpm/liberiotable.py +++ b/mpm/python/usrp_mpm/liberiotable.py @@ -47,14 +47,14 @@ class LiberioDispatcherTable(object): self.poke32(addr, data) # Poke reg for destination channel try: - poke_and_trace( - 0 + 4 * sid.dst_ep, - dma_channel, - ) + with self._regs.open(): + poke_and_trace( + 0 + 4 * sid.dst_ep, + dma_channel, + ) except Exception as ex: self.log.error( "Unexpected exception while setting route: %s", str(ex), ) raise - |