Skip to content

Commit

Permalink
Merge pull request #1937 from alexjx/main
Browse files Browse the repository at this point in the history
Fix avrdoper header sequence for hidusb
  • Loading branch information
stefanrueger authored Dec 13, 2024
2 parents 69c3293 + 42d9cc4 commit d732f74
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/ser_avrdoper.c
Original file line number Diff line number Diff line change
Expand Up @@ -113,11 +113,13 @@ static int usbGetReport(const union filedescriptor *fdp, int reportType, int rep

switch(reportType) {
case USB_HID_REPORT_TYPE_INPUT:
buffer[0] = reportNumber;
bytesReceived = hid_read_timeout(udev, (unsigned char *) buffer, *len, 300);
break;
case USB_HID_REPORT_TYPE_OUTPUT:
break;
case USB_HID_REPORT_TYPE_FEATURE:
buffer[0] = reportNumber;
bytesReceived = hid_get_feature_report(udev, (unsigned char *) buffer, *len);
break;
}
Expand Down

0 comments on commit d732f74

Please sign in to comment.