aboutsummaryrefslogtreecommitdiffstats
path: root/mpm/lib
diff options
context:
space:
mode:
authorMark Meserve <mark.meserve@ni.com>2017-04-25 13:53:39 -0500
committerMartin Braun <martin.braun@ettus.com>2017-12-22 15:03:52 -0800
commit1262dfb3ccf5a9916685b3399587593174c6583e (patch)
tree7245557f249571adce0d80b4cbf631c2b2cf4534 /mpm/lib
parent5da05554a5a994c7ffde3ce20965d557fa33bc67 (diff)
downloaduhd-1262dfb3ccf5a9916685b3399587593174c6583e.tar.gz
uhd-1262dfb3ccf5a9916685b3399587593174c6583e.tar.bz2
uhd-1262dfb3ccf5a9916685b3399587593174c6583e.zip
spidev: initialize cs_change
Diffstat (limited to 'mpm/lib')
-rw-r--r--mpm/lib/spi/spidev_iface.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/mpm/lib/spi/spidev_iface.cpp b/mpm/lib/spi/spidev_iface.cpp
index 88ee46824..919cf338e 100644
--- a/mpm/lib/spi/spidev_iface.cpp
+++ b/mpm/lib/spi/spidev_iface.cpp
@@ -122,11 +122,12 @@ public:
tr.tx_buf = (unsigned long) &tx[0];
tr.rx_buf = (unsigned long) &rx[0];
tr.len = num_bits >> 3;
+ tr.speed_hz = _speed;
+ tr.delay_usecs = _delay;
tr.bits_per_word = _bits;
+ tr.cs_change = 0;
tr.tx_nbits = 1; // Standard SPI
tr.rx_nbits = 1; // Standard SPI
- tr.speed_hz = _speed;
- tr.delay_usecs = _delay;
ret = ioctl(_fd, SPI_IOC_MESSAGE(1), &tr);
if (ret < 1)