Skip to content

Commit

Permalink
fix(usb): Fix -Wincompatible-pointer-types compiler error
Browse files Browse the repository at this point in the history
Fix #2794, where `get_keyboard_report(len)` didn't convert
`len` from `int32_t *` to `size_t *`.
  • Loading branch information
mlouielu committed Jan 24, 2025
1 parent 4f72e7c commit de3018b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/src/usb_hid.c
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ static int get_report_cb(const struct device *dev, struct usb_setup_packet *setu
case HID_REPORT_TYPE_INPUT:
switch (setup->wValue & HID_GET_REPORT_ID_MASK) {
case ZMK_HID_REPORT_ID_KEYBOARD: {
*data = get_keyboard_report(len);
*data = get_keyboard_report((size_t *)len);
break;
}
case ZMK_HID_REPORT_ID_CONSUMER: {
Expand Down

0 comments on commit de3018b

Please sign in to comment.