Skip to content

Instantly share code, notes, and snippets.

@mheuser
Last active December 16, 2015 10:29
Show Gist options
  • Save mheuser/5420908 to your computer and use it in GitHub Desktop.
Save mheuser/5420908 to your computer and use it in GitHub Desktop.
diff --git usb_libusb.c usb_libusb.c
index c61bdbd..581fa99 100644
--- usb_libusb.c
+++ usb_libusb.c
@@ -441,6 +441,7 @@ static int usbdev_recv_frame(union filedescriptor *fd, unsigned char *buf, size_
static int usbdev_drain(union filedescriptor *fd, int display)
{
+ /*
usb_dev_handle *udev = (usb_dev_handle *)fd->usb.handle;
int rv;
@@ -450,6 +451,7 @@ static int usbdev_drain(union filedescriptor *fd, int display)
fprintf(stderr, "%s: usbdev_drain(): flushed %d characters\n",
progname, rv);
} while (rv > 0);
+ */
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment