Skip to content

Commit

Permalink
fix avrdoper after 6.4
Browse files Browse the repository at this point in the history
  • Loading branch information
alexjx committed Dec 10, 2024
1 parent 69c3293 commit 42d9cc4
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 42d9cc4

Please sign in to comment.