summarylogtreecommitdiffstats
path: root/acr122bug.patch
blob: 745695c8384c599398345d43d3d05e23c8caa20e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
diff --git a/libnfc/drivers/acr122_usb.c b/libnfc/drivers/acr122_usb.c
index 17ae5fb..bab8bc2 100644
--- a/libnfc/drivers/acr122_usb.c
+++ b/libnfc/drivers/acr122_usb.c
@@ -434,13 +434,13 @@ acr122_usb_open(const nfc_context *context, const nfc_connstring connstring)
 
       // Check if there are more than 0 alternative interfaces and claim the first one
       if (dev->config->interface->altsetting->bAlternateSetting > 0) {
-        res = usb_set_altinterface(data.pudh, 0);
+        /*res = usb_set_altinterface(data.pudh, 0);
         if (res < 0) {
           log_put(LOG_GROUP, LOG_CATEGORY, NFC_LOG_PRIORITY_ERROR, "Unable to set alternate setting on USB interface (%s)", _usb_strerror(res));
           usb_close(data.pudh);
           // we failed to use the specified device
           goto free_mem;
-        }
+        }*/
       }
 
       // Allocate memory for the device info and specification, fill it and return the info