Skip to content

Fix a possible crash when disposing ADS1115 device#2345

Merged
Ellerbach merged 2 commits into
dotnet:mainfrom
pgrawehr:SomeMinorFixes
Aug 23, 2024
Merged

Fix a possible crash when disposing ADS1115 device#2345
Ellerbach merged 2 commits into
dotnet:mainfrom
pgrawehr:SomeMinorFixes

Conversation

@pgrawehr

@pgrawehr pgrawehr commented Aug 19, 2024

Copy link
Copy Markdown
Contributor

In case a communication error happens during dispose, the driver would crash.

Microsoft Reviewers: Open in CodeFlow

@dotnet-policy-service dotnet-policy-service Bot added the area-device-bindings Device Bindings for audio, sensor, motor, and display hardware that can used with System.Device.Gpio label Aug 19, 2024
Comment thread src/devices/Ads1115/Ads1115.cs

@Ellerbach Ellerbach left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Looks good. Thanks a lot for the fix!

@Ellerbach Ellerbach merged commit 3f2c387 into dotnet:main Aug 23, 2024
@github-actions github-actions Bot locked and limited conversation to collaborators Sep 24, 2024
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.

2 participants