USBHID: Fix the initial HID report read operation

The first 4 bytes received were lost due to a wrong address.
Read the output report into HID_REPORT.data.
pull/10469/head
Filip Jagodzinski 2019-03-13 14:04:47 +01:00 committed by adbridge
parent d254fde716
commit 7eda1266b0
1 changed files with 1 additions and 1 deletions

View File

@ -380,7 +380,7 @@ void USBHID::callback_set_configuration(uint8_t configuration)
endpoint_add(_int_out, MAX_HID_REPORT_SIZE, USB_EP_TYPE_INT, &USBHID::_read_isr);
// We activate the endpoint to be able to recceive data
read_start(_int_out, (uint8_t *)&_output_report, MAX_HID_REPORT_SIZE);
read_start(_int_out, _output_report.data, MAX_HID_REPORT_SIZE);
_read_idle = false;