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

Made I2cDevice/SpiDevice ReadByte/WriteByte methods virtual #1937

Merged

Conversation

Jimmys20
Copy link
Contributor

@Jimmys20 Jimmys20 commented Sep 30, 2022

Fixes #1629

Made WriteByte/ReadByte methods virtual for I2cDevice and SpiDevice and removed the override methods from deriving classes that had same implementation as base methods.

Microsoft Reviewers: Open in CodeFlow

Copy link
Member

@krwq krwq left a comment

Choose a reason for hiding this comment

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

LGTM thank you

@krwq
Copy link
Member

krwq commented Sep 30, 2022

@Jimmys20 looks good thank you, I assume this will get merged soon but API changes to System.Device.Gpio require at least two people to approve so we'll need to wait for those.

Copy link
Contributor

@pgrawehr pgrawehr left a comment

Choose a reason for hiding this comment

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

Unsafe should not be required for this method.

@Jimmys20 Jimmys20 requested review from gfoidl and removed request for raffaeler, Ellerbach and joperezr October 1, 2022 10:12
@Jimmys20
Copy link
Contributor Author

Jimmys20 commented Oct 1, 2022

Sorry, I pressed "Re-request review" for gfoidl and it removed the other review requests.

Copy link
Member

@gfoidl gfoidl left a comment

Choose a reason for hiding this comment

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

I think this is "limitation" of GH, that other reviewers (based on file-owners) get removed than.

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.

Looks good to me

@pgrawehr pgrawehr merged commit 402cda0 into dotnet:main Oct 4, 2022
@Jimmys20 Jimmys20 deleted the i2c-spi-device-read-write-byte-method-virtual branch October 4, 2022 08:19
@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
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Consider making I2cDevice/SpiDevice.WriteByte/ReadByte virtual
5 participants