Skip to content

Commit 5d46f7f

Browse files
added TU_ATTR_WEAK attribute for tuh_hid_report_received_cb
1 parent c796dcf commit 5d46f7f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: src/class/hid/hid_host.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ TU_ATTR_WEAK void tuh_hid_umount_cb(uint8_t dev_addr, uint8_t idx);
140140

141141
// Invoked when received report from device via interrupt endpoint
142142
// Note: if there is report ID (composite), it is 1st byte of report
143-
void tuh_hid_report_received_cb(uint8_t dev_addr, uint8_t idx, uint8_t const* report, uint16_t len);
143+
TU_ATTR_WEAK void tuh_hid_report_received_cb(uint8_t dev_addr, uint8_t idx, uint8_t const* report, uint16_t len);
144144

145145
// Invoked when sent report to device successfully via interrupt endpoint
146146
TU_ATTR_WEAK void tuh_hid_report_sent_cb(uint8_t dev_addr, uint8_t idx, uint8_t const* report, uint16_t len);

0 commit comments

Comments
 (0)