From a11bdcce669038b8ce49c001ac9c3dba5cf0e949 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rodolfo=20Garc=C3=ADa=20Pe=C3=B1as=20=28kix=29?= Date: Wed, 25 Sep 2019 15:18:29 +0200 Subject: [PATCH] Remove call to usb_set_altinterface A new version of ACR122 includes a different behaviour. With this version, calls to usb_set_altinterface returs an error -110. We can remove these lines safely, and the new, and old devices, works fine. --- libnfc/drivers/acr122_usb.c | 8 -------- 1 file changed, 8 deletions(-) diff --git a/libnfc/drivers/acr122_usb.c b/libnfc/drivers/acr122_usb.c index a6392e8..609a495 100644 --- a/libnfc/drivers/acr122_usb.c +++ b/libnfc/drivers/acr122_usb.c @@ -427,14 +427,6 @@ acr122_usb_open(const nfc_context *context, const nfc_connstring connstring) goto free_mem; } - 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 pnd = nfc_device_new(context, connstring); if (!pnd) {