Skip to content

Commit

Permalink
Duplicate USB report sending fix (#1121)
Browse files Browse the repository at this point in the history
Removed tud_hid_report rebroadcast on set_report to prevent unexpected reporting behavior
  • Loading branch information
mikepparks authored Aug 31, 2024
1 parent c1f7a7e commit 6b7552c
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/usbdriver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ uint16_t tud_hid_get_report_cb(uint8_t itf, uint8_t report_id, hid_report_type_t
// received data on OUT endpoint ( Report ID = 0, Type = 0 )
void tud_hid_set_report_cb(uint8_t itf, uint8_t report_id, hid_report_type_t report_type, uint8_t const *buffer, uint16_t bufsize) {
DriverManager::getInstance().getDriver()->set_report(report_id, report_type, buffer, bufsize);
tud_hid_report(report_id, buffer, bufsize); // echo back anything we received from host
}

// Invoked when device is mounted
Expand Down

0 comments on commit 6b7552c

Please sign in to comment.