Skip to content
This repository was archived by the owner on Mar 31, 2024. It is now read-only.

Commit 2d31d41

Browse files
committed
fix for Linux variant of certain IDE that sends OUT messages that are too small
1 parent 1d27ed5 commit 2d31d41

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

main.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,6 @@ uint16_t tud_hid_get_report_cb(uint8_t itf, uint8_t report_id, hid_report_type_t
7575
void tud_hid_set_report_cb(uint8_t itf, uint8_t report_id, hid_report_type_t report_type, uint8_t const* RxDataBuffer, uint16_t bufsize)
7676
{
7777
static uint8_t TxDataBuffer[CFG_TUD_HID_EP_BUFSIZE];
78-
uint32_t response_size = TU_MIN(CFG_TUD_HID_EP_BUFSIZE, bufsize);
7978

8079
// This doesn't use multiple report and report ID
8180
(void) itf;
@@ -84,5 +83,5 @@ void tud_hid_set_report_cb(uint8_t itf, uint8_t report_id, hid_report_type_t rep
8483

8584
DAP_ProcessCommand(RxDataBuffer, TxDataBuffer);
8685

87-
tud_hid_report(0, TxDataBuffer, response_size);
86+
tud_hid_report(0, TxDataBuffer, sizeof(TxDataBuffer));
8887
}

0 commit comments

Comments
 (0)