aboutsummaryrefslogtreecommitdiffstats
path: root/mpm/python/usrp_mpm/dboard_manager
diff options
context:
space:
mode:
authorMartin Braun <martin.braun@ettus.com>2017-10-09 17:44:02 -0700
committerMartin Braun <martin.braun@ettus.com>2017-12-22 15:04:02 -0800
commitcea45dda8f7d7918930a6b1150913390d4480037 (patch)
tree66ca4ca6bdabe32e023317afae8bde674ecaf329 /mpm/python/usrp_mpm/dboard_manager
parent9a9759e2cfea3de602dda3053c1a4a46005abeb1 (diff)
downloaduhd-cea45dda8f7d7918930a6b1150913390d4480037.tar.gz
uhd-cea45dda8f7d7918930a6b1150913390d4480037.tar.bz2
uhd-cea45dda8f7d7918930a6b1150913390d4480037.zip
mpm: Add mboard EEPROM support
MPMD binds a property for the mboard EEPROM to the appropriate RPC calls. PeriphManager now provides default implementations for an mboard EEPROM.
Diffstat (limited to 'mpm/python/usrp_mpm/dboard_manager')
-rw-r--r--mpm/python/usrp_mpm/dboard_manager/base.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/mpm/python/usrp_mpm/dboard_manager/base.py b/mpm/python/usrp_mpm/dboard_manager/base.py
index b87033860..cf3510abf 100644
--- a/mpm/python/usrp_mpm/dboard_manager/base.py
+++ b/mpm/python/usrp_mpm/dboard_manager/base.py
@@ -134,8 +134,8 @@ class DboardManagerBase(object):
format.
"""
callback_map = \
- rx_sensor_callback_map if direction.lower() == 'rx' \
- else tx_sensor_callback_map
+ self.rx_sensor_callback_map if direction.lower() == 'rx' \
+ else self.tx_sensor_callback_map
if sensor_name not in callback_map:
error_msg = "Was asked for non-existent sensor `{}'.".format(
sensor_name
@@ -143,6 +143,6 @@ class DboardManagerBase(object):
self.log.error(error_msg)
raise RuntimeError(error_msg)
return getattr(
- self, self.callback_map.get('sensor_name')
+ self, callback_map.get('sensor_name')
)()