Skip to content

Commit e01fe08

Browse files
authored
Update USBCore.cpp
1 parent 8f1f9a5 commit e01fe08

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

cores/arduino/USBCore.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -658,7 +658,8 @@ ISR(USB_COM_vect)
658658
}
659659

660660
if (featureData && featureLen > 0) {
661-
InitControl(min(featureLen, setup.wLength));
661+
InitControl(min(featureLen + 1, setup.wLength));
662+
SendControl(reportId);
662663
USB_SendControl(TRANSFER_PGM, featureData, min(featureLen, setup.wLength));
663664
ok = true;
664665
}

0 commit comments

Comments
 (0)