freebsd-ports/devel/libnfc/files/patch-libnfc_drivers_acr122__usb.c
Tilman Keskinoz 80ccb4096c devel/libnfc: Update to 1.8.0
* Switch mastersite to github
* Fix nfc-scan-device for ACR_122_USB
* Bump PORTREVISION of dependencies because of shared library bump

PR:		261667
Submitted by:	Stefan Ehmann
Approved by:	maintainer timeout (ca. 9 months)
2022-11-14 14:06:43 +00:00

13 lines
436 B
C

--- libnfc/drivers/acr122_usb.c.orig 2022-02-01 22:26:36 UTC
+++ libnfc/drivers/acr122_usb.c
@@ -419,6 +419,9 @@ acr122_usb_open(const nfc_context *context, const nfc_
continue;
// Reset device
usb_reset(data.pudh);
+ // Reopen the device
+ if ((data.pudh = usb_open(dev)) == NULL)
+ continue;
// Retrieve end points
acr122_usb_get_end_points(dev, &data);
// Claim interface