diff options
author | Brent Stapleton <brent.stapleton@ettus.com> | 2018-07-20 16:07:38 -0700 |
---|---|---|
committer | Brent Stapleton <bstapleton@g.hmc.edu> | 2018-07-23 10:33:34 -0700 |
commit | 5b18614d39f5cebdd8bf3bf6e5acf3a34f204191 (patch) | |
tree | d250c2e3189628e06f1467d2b6001e620b60b8a4 /mpm/python/usrp_mpm/liberiotable.py | |
parent | 102fcc0ff897f6ff4ddce03b29d4b57b492d6ead (diff) | |
download | uhd-5b18614d39f5cebdd8bf3bf6e5acf3a34f204191.tar.gz uhd-5b18614d39f5cebdd8bf3bf6e5acf3a34f204191.tar.bz2 uhd-5b18614d39f5cebdd8bf3bf6e5acf3a34f204191.zip |
uio: mpm: Fixup for opening mboard-regs UIO
- Fix the syntax to open mboard-regs UIO objects, and change the open()
and close() functions to be private.
- We were calling open() twice in every context manager line- once
manually, and once in __enter__. This commit corrects those usages, and
allows the context manager to fully manage the opening and closing of
UIO objects.
Diffstat (limited to 'mpm/python/usrp_mpm/liberiotable.py')
-rw-r--r-- | mpm/python/usrp_mpm/liberiotable.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mpm/python/usrp_mpm/liberiotable.py b/mpm/python/usrp_mpm/liberiotable.py index 19226345b..d732eedcb 100644 --- a/mpm/python/usrp_mpm/liberiotable.py +++ b/mpm/python/usrp_mpm/liberiotable.py @@ -47,7 +47,7 @@ class LiberioDispatcherTable(object): self.poke32(addr, data) # Poke reg for destination channel try: - with self._regs.open(): + with self._regs: poke_and_trace( 0 + 4 * sid.dst_ep, dma_channel, |