Skip to content

Optimization: remove read/write from SPI device and return SPI bus on context manager enter #2

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 13, 2016

Conversation

tdicola
Copy link
Contributor

@tdicola tdicola commented Dec 13, 2016

Since these functions just pass through to the SPI bus, as a small optimization directly return the SPI bus when it's locked. This removes the need to wrap the functions and the calling overhead.

@tannewt tannewt merged commit 0a0401a into master Dec 13, 2016
@tannewt
Copy link
Member

tannewt commented Dec 13, 2016

Thanks @tdicola!

@evaherrada evaherrada deleted the optimize_spi branch June 21, 2021 13:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants