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

Commit 2e84c14

Browse files
authored
Merge pull request #53 from frankalicious/fix-SPI-cs-assert-during-startup
fix unwanted SPI cs assert during startup
2 parents 93e8ac6 + 8cf257f commit 2e84c14

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Adafruit_GPIO/FT232H.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -398,8 +398,8 @@ def __init__(self, ft232h, cs=None, max_speed_hz=1000000, mode=0, bitorder=MSBFI
398398
self._ft232h = ft232h
399399
# Initialize chip select pin if provided to output high.
400400
if cs is not None:
401-
ft232h.setup(cs, GPIO.OUT)
402401
ft232h.set_high(cs)
402+
ft232h.setup(cs, GPIO.OUT)
403403
self._cs = cs
404404
# Initialize clock, mode, and bit order.
405405
self.set_clock_hz(max_speed_hz)

0 commit comments

Comments
 (0)