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

SPI: Make sure CS line is active-low #52

Merged
merged 1 commit into from
Feb 27, 2018
Merged

Conversation

mrnuke
Copy link
Contributor

@mrnuke mrnuke commented Oct 15, 2016

If another user configures the SPI bus as CS active-high, the setting will stick. Thus, it is possible to end up in a situation where where CS is forced high during SPI transactions. The solution is to explicitly disable cshigh before using the SpiDev object.

If another user configures the SPI bus as CS active-high, the setting
will stick. It is thus possible to end up in a situation where CS is
forced high during SPI transactions. The solution is to explicitly
disable 'cshigh' before using the SpiDev object.
@tdicola
Copy link
Contributor

tdicola commented Feb 27, 2018

Thanks for sending the change! I'll merge it in as it's low risk and might resolve an odd scenario like you mention of multiple devices sharing the SPI bus and leaving it in an odd state.

@tdicola tdicola merged commit 145b1d3 into adafruit:master Feb 27, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants