aboutsummaryrefslogtreecommitdiffstats
path: root/mpm/python
diff options
context:
space:
mode:
authormattprost <matt.prost@ni.com>2021-03-29 14:30:22 -0500
committerAaron Rossetto <aaron.rossetto@ni.com>2021-04-19 12:42:33 -0500
commit38980b2e497207ac529cba344d4d339e49cc5640 (patch)
tree51cc28cbe719d3c23d3bbde43ae76ba6e400aff6 /mpm/python
parentbfbda2fb0db5376951cff348fac2d3df98e985c6 (diff)
downloaduhd-38980b2e497207ac529cba344d4d339e49cc5640.tar.gz
uhd-38980b2e497207ac529cba344d4d339e49cc5640.tar.bz2
uhd-38980b2e497207ac529cba344d4d339e49cc5640.zip
mpm: mg: periphs: Read lowband lo lock status from cpld
Fix the issue where N310 did not correctly read the lo lock status from the cpld. Signed-off-by: mattprost <matt.prost@ni.com>
Diffstat (limited to 'mpm/python')
-rw-r--r--mpm/python/usrp_mpm/dboard_manager/mg_periphs.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/mpm/python/usrp_mpm/dboard_manager/mg_periphs.py b/mpm/python/usrp_mpm/dboard_manager/mg_periphs.py
index fe55cf39f..70e0b75fc 100644
--- a/mpm/python/usrp_mpm/dboard_manager/mg_periphs.py
+++ b/mpm/python/usrp_mpm/dboard_manager/mg_periphs.py
@@ -133,6 +133,7 @@ class MgCPLD(object):
self.regs = regs
self.poke16 = self.regs.poke16
self.peek16 = self.regs.peek16
+ self.reset()
signature = self.peek16(self.REG_SIGNATURE)
if signature != self.CPLD_SIGNATURE:
self.log.error(
@@ -188,7 +189,7 @@ class MgCPLD(object):
'rx'.
"""
mask = (1<<4) if which.lower() == 'tx' else 1
- return bool(self.peek16(self.REG_LO_STATUS & mask))
+ return bool(self.peek16(self.REG_LO_STATUS) & mask)
def reset_mykonos(self, keep_in_reset=False):
"""