Alter device configuration, add log4j dependency

This commit is contained in:
2016-07-03 16:17:10 +01:00
parent 4283a2ebc4
commit 158175da6d
2 changed files with 2 additions and 1 deletions

View File

@@ -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 {

View File

@@ -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);
}