diff options
author | Brent Stapleton <brent.stapleton@ettus.com> | 2018-09-26 10:27:52 -0700 |
---|---|---|
committer | Brent Stapleton <bstapleton@g.hmc.edu> | 2018-09-26 11:48:44 -0700 |
commit | d50e013646de654b5c82745eccbc6310be4bda5d (patch) | |
tree | 40dbc42e40ea2158cea84cb5f40c5afa80d477ad /mpm/python | |
parent | b993f4f0d85eee53c1256e0381c3a173af7d5833 (diff) | |
download | uhd-d50e013646de654b5c82745eccbc6310be4bda5d.tar.gz uhd-d50e013646de654b5c82745eccbc6310be4bda5d.tar.bz2 uhd-d50e013646de654b5c82745eccbc6310be4bda5d.zip |
n3xx: e320: fixing GPSDIface sensor names
N3xx and E320 were registering GPSDIface names as get_*_sensor instead
of just the sensor name. Fixing this to now register the sensor name.
Diffstat (limited to 'mpm/python')
-rw-r--r-- | mpm/python/usrp_mpm/periph_manager/e320.py | 2 | ||||
-rw-r--r-- | mpm/python/usrp_mpm/periph_manager/n3xx.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/mpm/python/usrp_mpm/periph_manager/e320.py b/mpm/python/usrp_mpm/periph_manager/e320.py index 7c8cd6893..035df436f 100644 --- a/mpm/python/usrp_mpm/periph_manager/e320.py +++ b/mpm/python/usrp_mpm/periph_manager/e320.py @@ -305,7 +305,7 @@ class e320(ZynqComponents, PeriphManagerBase): for method_name in new_methods: try: # Extract the sensor name from the getter - sensor_name = re.search(r"get_.*_sensor", method_name).string + sensor_name = re.search(r"get_(.*)_sensor", method_name).group(1) # Register it with the MB sensor framework self.mboard_sensor_callback_map[sensor_name] = method_name self.log.trace("Adding %s sensor function", sensor_name) diff --git a/mpm/python/usrp_mpm/periph_manager/n3xx.py b/mpm/python/usrp_mpm/periph_manager/n3xx.py index 04014f5b2..2615284dd 100644 --- a/mpm/python/usrp_mpm/periph_manager/n3xx.py +++ b/mpm/python/usrp_mpm/periph_manager/n3xx.py @@ -351,7 +351,7 @@ class n3xx(ZynqComponents, PeriphManagerBase): for method_name in new_methods: try: # Extract the sensor name from the getter - sensor_name = re.search(r"get_.*_sensor", method_name).string + sensor_name = re.search(r"get_(.*)_sensor", method_name).group(1) # Register it with the MB sensor framework self.mboard_sensor_callback_map[sensor_name] = method_name self.log.trace("Adding %s sensor function", sensor_name) |