Skip to content

Commit

Permalink
upgrade the tinyusb
Browse files Browse the repository at this point in the history
  • Loading branch information
z4yx committed May 30, 2024
1 parent fba4d67 commit c4b4ba2
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion interfaces/USB/class/hid/hid.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
#include <kbdhid.h>

// Dispatch HID callback to ctap/kbd handlers
void tud_hid_report_complete_cb(uint8_t instance, uint8_t const *report, uint8_t len) {
void tud_hid_report_complete_cb(uint8_t instance, uint8_t const *report, uint16_t len) {
if (instance == HID_ITF_CTAP) {
ctap_hid_report_complete_cb(report, len);
} else if (instance == HID_ITF_KBD) {
Expand Down
2 changes: 1 addition & 1 deletion interfaces/USB/class/hid/hid.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#ifndef _HID_H_
#define _HID_H_

extern void tud_hid_report_complete_cb(uint8_t instance, uint8_t const* report, uint8_t len);
extern void tud_hid_report_complete_cb(uint8_t instance, uint8_t const* report, uint16_t len);
extern uint16_t tud_hid_get_report_cb(uint8_t instance, uint8_t report_id, hid_report_type_t report_type, uint8_t* buffer, uint16_t reqlen);
extern void tud_hid_set_report_cb(uint8_t instance, uint8_t report_id, hid_report_type_t report_type, uint8_t const* buffer, uint16_t bufsize);

Expand Down
2 changes: 1 addition & 1 deletion tinyusb
Submodule tinyusb updated 610 files

0 comments on commit c4b4ba2

Please sign in to comment.