summaryrefslogtreecommitdiff
path: root/src/class/hid/hid_device.c
diff options
context:
space:
mode:
authorHjalmar <[email protected]>2024-08-09 21:08:32 +0200
committerHjalmar <[email protected]>2024-08-09 21:08:32 +0200
commitb786d6f4e632654a356932115bfc0c1621f6333b (patch)
tree945dcca448a8c41021d57413e667596f9e66f4cb /src/class/hid/hid_device.c
parentea64dd4999618ce14aea90118ee9218b4aefeba6 (diff)
Marked the keycode parameter of the keyboard_report functions as const since the functions don't modifies the value
Diffstat (limited to 'src/class/hid/hid_device.c')
-rw-r--r--src/class/hid/hid_device.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/class/hid/hid_device.c b/src/class/hid/hid_device.c
index 00f6fc474..ef6c7f3af 100644
--- a/src/class/hid/hid_device.c
+++ b/src/class/hid/hid_device.c
@@ -134,7 +134,7 @@ uint8_t tud_hid_n_get_protocol(uint8_t instance) {
return _hidd_itf[instance].protocol_mode;
}
-bool tud_hid_n_keyboard_report(uint8_t instance, uint8_t report_id, uint8_t modifier, uint8_t keycode[6]) {
+bool tud_hid_n_keyboard_report(uint8_t instance, uint8_t report_id, uint8_t modifier, const uint8_t keycode[6]) {
hid_keyboard_report_t report;
report.modifier = modifier;
report.reserved = 0;