Skip to content
This repository was archived by the owner on Sep 30, 2019. It is now read-only.

Commit 35a6a9c

Browse files
authored
Fix previous commit to correctly set SpiDev device cshigh property.
1 parent 145b1d3 commit 35a6a9c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Adafruit_GPIO/SPI.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ def __init__(self, port, device, max_speed_hz=500000):
4343
self._device.max_speed_hz=max_speed_hz
4444
# Default to mode 0, and make sure CS is active low.
4545
self._device.mode = 0
46-
self.cshigh = False
46+
self._device.cshigh = False
4747

4848
def set_clock_hz(self, hz):
4949
"""Set the speed of the SPI clock in hertz. Note that not all speeds

0 commit comments

Comments
 (0)