aboutsummaryrefslogtreecommitdiffstats
path: root/mpm/python/usrp_mpm/dboard_manager/eiscat.py
diff options
context:
space:
mode:
authorMartin Braun <martin.braun@ettus.com>2017-05-31 21:58:45 -0700
committerMartin Braun <martin.braun@ettus.com>2017-12-22 15:03:58 -0800
commit3c50e39d644767ea3f668bbf2146ea4c636ce8e2 (patch)
treeb0056aea97ab0a2452692603987ac83d8cf9fed0 /mpm/python/usrp_mpm/dboard_manager/eiscat.py
parentcd533c8080287f8558cdb283d28ad00661c1a164 (diff)
downloaduhd-3c50e39d644767ea3f668bbf2146ea4c636ce8e2.tar.gz
uhd-3c50e39d644767ea3f668bbf2146ea4c636ce8e2.tar.bz2
uhd-3c50e39d644767ea3f668bbf2146ea4c636ce8e2.zip
mpm: Removed gratuitous encode(), safer udev lookups
- Udev lookups now just return empty lists when they can't find anything - Made SPI dev interface factory Py2/3 safe
Diffstat (limited to 'mpm/python/usrp_mpm/dboard_manager/eiscat.py')
-rw-r--r--mpm/python/usrp_mpm/dboard_manager/eiscat.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/mpm/python/usrp_mpm/dboard_manager/eiscat.py b/mpm/python/usrp_mpm/dboard_manager/eiscat.py
index 6997e2fc9..b3d70673d 100644
--- a/mpm/python/usrp_mpm/dboard_manager/eiscat.py
+++ b/mpm/python/usrp_mpm/dboard_manager/eiscat.py
@@ -35,7 +35,7 @@ def create_spidev_iface_sane(dev_node):
Create a regs iface from a spidev node (sane values)
"""
return lib.spi.make_spidev_regs_iface(
- dev_node,
+ str(dev_node),
1000000, # Speed (Hz)
3, # SPI mode
8, # Addr shift
@@ -49,7 +49,7 @@ def create_spidev_iface_phasedac(dev_node):
Create a regs iface from a spidev node (ADS5681)
"""
return lib.spi.make_spidev_regs_iface(
- dev_node,
+ str(dev_node),
1000000, # Speed (Hz)
1, # SPI mode
20, # Addr shift