From: Martin Mares Date: Mon, 13 Feb 2012 15:56:57 +0000 (+0100) Subject: Try to reset the USB device upon errors X-Git-Tag: v1.3~3 X-Git-Url: http://mj.ucw.cz/gitweb/?a=commitdiff_plain;h=34b7733a92488b1d47e8a4d6df31747f6fb55e2e;p=arexx.git Try to reset the USB device upon errors --- diff --git a/arexxd.c b/arexxd.c index e82fc84..00a36f8 100644 --- a/arexxd.c +++ b/arexxd.c @@ -337,6 +337,8 @@ failed: static void release_device(void) { + libusb_release_interface(devh, 0); + libusb_reset_device(devh); libusb_close(devh); devh = NULL; }