Skip to content

Commit

Permalink
Merge pull request #99 from RetiredWizard/spicsinit
Browse files Browse the repository at this point in the history
Set inital SPI CS value according to parameters
  • Loading branch information
tannewt authored Apr 9, 2024
2 parents c4f1054 + 519bf36 commit 88250a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion adafruit_bus_device/spi_device.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ def __init__(
self.chip_select = chip_select
self.cs_active_value = cs_active_value
if self.chip_select:
self.chip_select.switch_to_output(value=True)
self.chip_select.switch_to_output(value=not self.cs_active_value)

def __enter__(self) -> SPI:
while not self.spi.try_lock():
Expand Down

0 comments on commit 88250a1

Please sign in to comment.