From c4b4ba2e1e32bfc98f0373ffcf6bd1cdc398d297 Mon Sep 17 00:00:00 2001 From: z4yx Date: Thu, 30 May 2024 13:33:31 +0800 Subject: [PATCH] upgrade the tinyusb --- interfaces/USB/class/hid/hid.c | 2 +- interfaces/USB/class/hid/hid.h | 2 +- tinyusb | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/interfaces/USB/class/hid/hid.c b/interfaces/USB/class/hid/hid.c index 133b35f4..6afe7dd9 100644 --- a/interfaces/USB/class/hid/hid.c +++ b/interfaces/USB/class/hid/hid.c @@ -6,7 +6,7 @@ #include // 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) { diff --git a/interfaces/USB/class/hid/hid.h b/interfaces/USB/class/hid/hid.h index cc90eda9..bf6029d6 100644 --- a/interfaces/USB/class/hid/hid.h +++ b/interfaces/USB/class/hid/hid.h @@ -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); diff --git a/tinyusb b/tinyusb index af0e7a8a..59009fbc 160000 --- a/tinyusb +++ b/tinyusb @@ -1 +1 @@ -Subproject commit af0e7a8a2fbfa7eef2c097b477464314e5266123 +Subproject commit 59009fbcab780bdcccadde04ff1c0a63224ea482