Correct endpoint direction for control messages of USBtinyISP devices

This commit is contained in:
Marius Greuel 2020-02-23 21:03:11 +02:00
parent bc9b67a153
commit 9d6420e723
1 changed files with 1 additions and 1 deletions

View File

@ -100,7 +100,7 @@ static int usb_control (PROGRAMMER * pgm,
{
int nbytes;
nbytes = usb_control_msg( PDATA(pgm)->usb_handle,
USB_ENDPOINT_IN | USB_TYPE_VENDOR | USB_RECIP_DEVICE,
USB_ENDPOINT_OUT | USB_TYPE_VENDOR | USB_RECIP_DEVICE,
requestid,
val, index, // 2 bytes each of data
NULL, 0, // no data buffer in control message