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

Refactor command supporting list #425

Merged
merged 1 commit into from Feb 7, 2024
Merged

Refactor command supporting list #425

merged 1 commit into from Feb 7, 2024

Conversation

zxzxwu
Copy link
Collaborator

@zxzxwu zxzxwu commented Feb 4, 2024

No description provided.

@zxzxwu zxzxwu closed this Feb 5, 2024
@zxzxwu zxzxwu reopened this Feb 5, 2024

return False
def supports_command(self, op_code: int) -> bool:
return (
Copy link
Collaborator

Choose a reason for hiding this comment

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

I recommend using HCI_SUPPORTED_COMMANDS_MASKS.get() instead of HCI_SUPPORTED_COMMANDS_MASKS[] to avoid an exception if the op_code isn't in the map (ex: a caller asking about an unknown/new/vendor op_code).

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Done

@zxzxwu zxzxwu merged commit 0218008 into google:main Feb 7, 2024
51 checks passed
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.

None yet

2 participants