From 42d9cc43e8aa8495c5ddc94728019e72b0ff0c72 Mon Sep 17 00:00:00 2001 From: Jia Xin Date: Tue, 10 Dec 2024 22:21:51 +0800 Subject: [PATCH] fix avrdoper after 6.4 --- src/ser_avrdoper.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/ser_avrdoper.c b/src/ser_avrdoper.c index 4b8e8cbe4..0fdd14943 100644 --- a/src/ser_avrdoper.c +++ b/src/ser_avrdoper.c @@ -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; }