From 34b7733a92488b1d47e8a4d6df31747f6fb55e2e Mon Sep 17 00:00:00 2001 From: Martin Mares Date: Mon, 13 Feb 2012 16:56:57 +0100 Subject: [PATCH] Try to reset the USB device upon errors --- arexxd.c | 2 ++ 1 file changed, 2 insertions(+) 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; } -- 2.39.2