diff --git a/build.gradle b/build.gradle index d37b947..7f8db0a 100644 --- a/build.gradle +++ b/build.gradle @@ -34,6 +34,7 @@ repositories { dependencies { compile 'org.picocontainer:picocontainer:2.15' compile 'com.github.boukefalos:jlibusb:0.5.7' + compile 'org.slf4j:slf4j-log4j12:1.+' } uploadArchives { diff --git a/src/main/java/org/jraf/jlibibuddy/IBuddy.java b/src/main/java/org/jraf/jlibibuddy/IBuddy.java index 18c77ce..6458f01 100644 --- a/src/main/java/org/jraf/jlibibuddy/IBuddy.java +++ b/src/main/java/org/jraf/jlibibuddy/IBuddy.java @@ -497,7 +497,7 @@ public class IBuddy { private synchronized void open() throws IBuddyException { device = USB.getDevice(DEVICE_VENDOR, DEVICE_PRODUCT); try { - device.open(1, 0, 0); + device.open(1, 1, 0); } catch (USBException e) { throw new IBuddyException("Could not open i-Buddy", e); }