From 1262dfb3ccf5a9916685b3399587593174c6583e Mon Sep 17 00:00:00 2001 From: Mark Meserve Date: Tue, 25 Apr 2017 13:53:39 -0500 Subject: spidev: initialize cs_change --- mpm/lib/spi/spidev_iface.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'mpm/lib/spi/spidev_iface.cpp') 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) -- cgit v1.2.3