Skip to content
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

FT232H: SetDataBitsLowByte requires value before direction (#1996) #2001

Merged
merged 1 commit into from
Dec 30, 2022

Conversation

gabbla
Copy link
Contributor

@gabbla gabbla commented Dec 27, 2022

Fixes #1996

Reading more than 1 byte using FT232H I2C bus resulted in an unusable bus because the command used to set the GPIOs direction and values had the parameters appended in the wrong order. This PR fix the order. Tested in the same condition as described in #1996.

Microsoft Reviewers: Open in CodeFlow

@ghost ghost added the area-device-bindings Device Bindings for audio, sensor, motor, and display hardware that can used with System.Device.Gpio label Dec 27, 2022
@gabbla gabbla marked this pull request as draft December 28, 2022 11:44
@gabbla gabbla marked this pull request as ready for review December 28, 2022 16:30
Copy link
Member

@Ellerbach Ellerbach left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great catch! Thanks. I'm also working on this. There are few improvements to add. And fixing this bug. So great catch!

@gabbla
Copy link
Contributor Author

gabbla commented Dec 29, 2022

Great catch! Thanks. I'm also working on this. There are few improvements to add. And fixing this bug. So great catch!

Glad to help!

@Ellerbach
Copy link
Member

@krwq @pgrawehr @raffaeler @joperezr anyone to approve this one, so we can merge it quickly? :-)

@pgrawehr pgrawehr merged commit be177a6 into dotnet:main Dec 30, 2022
@gabbla gabbla deleted the ft232h-i2c-multibyte-read-fix branch January 2, 2023 16:35
@github-actions github-actions bot locked and limited conversation to collaborators Dec 8, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-device-bindings Device Bindings for audio, sensor, motor, and display hardware that can used with System.Device.Gpio
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants