* Initial support for n810

- Fix set_altinterface workaround which seems to be checked by nolo 1.7
- n810 has the same USBID than n770
* Define some nolo commands used in query.c in nolo.h
* Get SW version with -i too
This commit is contained in:
pancake committed 2008-02-18 01:25:00 +01:00
1 parent fc6bacdb94
commit 32a59f4279
6 files changed
+23 -15

No files matched your search

+3 -3
View File
@@ -175,8 +175,8 @@ int connect_via_usb()
return 1;
}
if ( usb_claim_interface(dev,
device->config->interface->altsetting->bInterfaceNumber) < 0) { // 2 or 0
if ( usb_claim_interface(dev, 2) < 0) {
//device->config->interface->altsetting->bInterfaceNumber) < 0) { // 2 or 0
D perror("usb_claim_interface");
// Something is broken if closing fails.
@@ -191,7 +191,7 @@ int connect_via_usb()
continue;
}
if (usb_set_altinterface(dev, device->config->interface->altsetting->bAlternateSetting) < 0) {
if (usb_set_altinterface(dev, 1) <0) { //device->config->interface->altsetting->bAlternateSetting) < 0) {
D perror("usb_set_altinterface");
// Something is broken if closing fails.