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

Add U.2 error handling #1465

Merged
merged 1 commit into from
Jul 18, 2023
Merged

Add U.2 error handling #1465

merged 1 commit into from
Jul 18, 2023

Conversation

mkeeter
Copy link
Collaborator

@mkeeter mkeeter commented Jul 18, 2023

Previously, devices in the thermal loop were either removable or not, marked by a boolean flag.

This PR adds a third type of device (RemovableAndErrorProne) and changes that flag into an enum.

The new type of device is applicable to our U.2s: it means that upon any I2C error, we treat the device as safely absent. Previously, only a NoDevice error would treat the device as safely absent; this remains the case for devices marked Removable.

@mkeeter mkeeter requested a review from bcantrill July 18, 2023 18:51
Copy link
Collaborator

@bcantrill bcantrill left a comment

Choose a reason for hiding this comment

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

This looks terrific -- I love the approach here, as it feels like this will not be the last removable device that may develop a bad attitude!

@mkeeter mkeeter enabled auto-merge (squash) July 18, 2023 20:25
@mkeeter mkeeter merged commit a096c4c into master Jul 18, 2023
65 checks passed
@mkeeter mkeeter deleted the u2-error-handling branch July 18, 2023 20:40
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