Permalink
Browse files

softusb: allow IN transfers with a payload of up to 64 bytes

Commit 9e05e46 increased the buffer
size for IN transfers but still only read no more than 8 bytes. Ooops.
This patch makes it receive up to 64 bytes.
  • Loading branch information...
1 parent 39fc153 commit b663a05afa1c3cb26a5f11525925d4828c1ededf @wpwrak wpwrak committed with sbourdeauducq Dec 1, 2011
Showing with 2 additions and 1 deletion.
  1. +2 −1 softusb-input/main.c
@@ -503,7 +503,8 @@ static void poll(struct ep_status *ep,
unsigned char usb_buffer[1+64+2]; /* DATAx + payload + CRC */
int len;
- len = usb_in(ADDR_EP(ADDR, ep->ep), ep->expected_data, usb_buffer, 11);
+ len = usb_in(ADDR_EP(ADDR, ep->ep), ep->expected_data, usb_buffer,
+ sizeof(usb_buffer));
if(len <= 0)
return;
ep->expected_data = toggle(ep->expected_data);

0 comments on commit b663a05

Please sign in to comment.