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 enum for USB PD modes #1943

Merged
merged 2 commits into from
Jul 9, 2024
Merged

Add enum for USB PD modes #1943

merged 2 commits into from
Jul 9, 2024

Conversation

ia
Copy link
Collaborator

@ia ia commented Jul 8, 2024

  • Please check if the PR fulfills these requirements
  • The changes have been tested locally
  • There are no breaking changes
  • What kind of change does this PR introduce?
    Small refactoring by adding enum for USB PD modes.

  • What is the current behavior?
    USB PD mode related code uses constants.

  • What is the new behavior (if this is a feature change)?
    USB PD mode related code uses self-documenting enum values.

  • Other information:
    I took some liberty to update comments as well based on information provided from PR Expand USB-PD mode option #1917 and from its "code review" comment to make it more clear for those who will be looking through the code next time.

As always, let me know what you think.

@Ralim Ralim merged commit c19e882 into Ralim:dev Jul 9, 2024
17 checks passed
@ia ia deleted the enum-usbpd branch March 4, 2025 17:17
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