mirror of
https://github.com/mariusgreuel/avrdude.git
synced 2025-10-08 19:53:07 +00:00
Correct endpoint direction for control messages of USBtinyISP devices
This commit is contained in:
@@ -106,7 +106,7 @@ static int usb_control (PROGRAMMER * pgm,
|
|||||||
{
|
{
|
||||||
int nbytes;
|
int nbytes;
|
||||||
nbytes = usb_control_msg( PDATA(pgm)->usb_handle,
|
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,
|
requestid,
|
||||||
val, index, // 2 bytes each of data
|
val, index, // 2 bytes each of data
|
||||||
NULL, 0, // no data buffer in control messge
|
NULL, 0, // no data buffer in control messge
|
||||||
|
Reference in New Issue
Block a user