From 6b7552c72261c584b881d0cbf4cde50f32a07f64 Mon Sep 17 00:00:00 2001 From: Mike Parks Date: Sat, 31 Aug 2024 12:05:17 -0700 Subject: [PATCH] Duplicate USB report sending fix (#1121) Removed tud_hid_report rebroadcast on set_report to prevent unexpected reporting behavior --- src/usbdriver.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/src/usbdriver.cpp b/src/usbdriver.cpp index 6ac32e69f..c7c5d73c3 100644 --- a/src/usbdriver.cpp +++ b/src/usbdriver.cpp @@ -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