From: Michael Gernoth Date: Sun, 14 Jul 2013 11:35:46 +0000 (+0200) Subject: revert null frame to zero length X-Git-Tag: v0.100~55 X-Git-Url: https://git.zerfleddert.de/cgi-bin/gitweb.cgi/hmcfgusb/commitdiff_plain/3d5b8e702ef33cb4b9e54b4cb42de189cadb24e6 revert null frame to zero length --- diff --git a/hmcfgusb.c b/hmcfgusb.c index 0857a4b..6df2bca 100644 --- a/hmcfgusb.c +++ b/hmcfgusb.c @@ -150,7 +150,7 @@ int hmcfgusb_send_null_frame(struct hmcfgusb_dev *usbdev, int silent) memset(out, 0, sizeof(out)); - err = libusb_interrupt_transfer(usbdev->usb_devh, EP_OUT, out, sizeof(out), &cnt, USB_TIMEOUT); + err = libusb_interrupt_transfer(usbdev->usb_devh, EP_OUT, out, 0, &cnt, USB_TIMEOUT); if (err && (!silent)) { fprintf(stderr, "Can't send null frame: %s\n", usb_strerror(err)); return 0;