aboutsummaryrefslogtreecommitdiffstats
path: root/mpm/python/usrp_mpm/chips
diff options
context:
space:
mode:
Diffstat (limited to 'mpm/python/usrp_mpm/chips')
-rw-r--r--mpm/python/usrp_mpm/chips/lmk04828.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/mpm/python/usrp_mpm/chips/lmk04828.py b/mpm/python/usrp_mpm/chips/lmk04828.py
index 3d979e65e..2dc603da3 100644
--- a/mpm/python/usrp_mpm/chips/lmk04828.py
+++ b/mpm/python/usrp_mpm/chips/lmk04828.py
@@ -29,7 +29,9 @@ class LMK04828(object):
LMK_CHIP_ID = 6
def __init__(self, regs_iface, parent_log=None):
- self.log = parent_log.getChild("LMK04828") or get_logger("LMK04828")
+ self.log = \
+ parent_log.getChild("LMK04828") if parent_log is not None \
+ else get_logger("LMK04828")
self.regs_iface = regs_iface
assert hasattr(self.regs_iface, 'peek8')
assert hasattr(self.regs_iface, 'poke8')