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

Marked the keycode parameter of the keyboard_report functions as const since the functions don't modifies the value #2759

Merged
merged 1 commit into from
Aug 10, 2024

Conversation

hjalleboii
Copy link

Marked the keycode parameter of the keyboard_report functions as const since the functions don't modifies the value

These functions does not change the value of uint8_t keycode[6] therefore it should be marked const
tud_hid_n_keyboard_report
tud_hid_keyboard_report

…t since the functions don't modifies the value
Copy link
Collaborator

@HiFiPhile HiFiPhile left a comment

Choose a reason for hiding this comment

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

Thanks !

@HiFiPhile HiFiPhile merged commit 18b5aff into hathach:master Aug 10, 2024
77 of 79 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.

2 participants