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

Replace NamedInts from hidpp20 constants #2642

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

MattHag
Copy link
Collaborator

@MattHag MattHag commented Oct 20, 2024

Refactors NamedInts

  • FEATURE_FLAG
  • FIRMWARE_KIND
  • CID_GROUP
  • CID_GROUP_BIT
    into enum classes.

Shorten test and clarify behavior using binary numbers.
This replicates the NamedInts functionality as plain function.
Replace NamedInts implementation with IntFlag enum and plain flag_names
function.

Related pwr-Solaar#2273
- Move general FirmwareKind to common module.
- Replace NamedInts implementation with IntEnum.
- Harden related HIDPP 1.0 get_firmware test.

Related pwr-Solaar#2273
@MattHag MattHag requested a review from pfps October 20, 2024 22:13
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.

1 participant