From ac1a015833bff00092148ac8dba820c010772738 Mon Sep 17 00:00:00 2001 From: schlaepfer Date: Fri, 28 Apr 2006 06:13:13 +0000 Subject: [PATCH] - delay of 1 second before reopening the device (it was not always recongnised by the USB-system) git-svn-id: https://svn.code.sf.net/p/libusbjava/code/trunk@139 94ad28fe-ef68-46b1-9651-e7ae4fcf1c4c --- mcdp/src/ch/ntb/usb/Device.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/mcdp/src/ch/ntb/usb/Device.java b/mcdp/src/ch/ntb/usb/Device.java index 6d54795..8255821 100644 --- a/mcdp/src/ch/ntb/usb/Device.java +++ b/mcdp/src/ch/ntb/usb/Device.java @@ -126,6 +126,10 @@ public class Device { logger.info("reset on first open"); resetDone = true; reset(); + try { + Thread.sleep(1000); + } catch (InterruptedException e) { + } open(configuration, interface_, altinterface); } }