mirror of
https://github.com/nfc-tools/libnfc.git
synced 2026-04-12 09:36:18 +00:00
Add "usb" keyword support to connstring to specify all usb drivers at once
This commit is contained in:
@@ -266,7 +266,7 @@ pn53x_usb_connstring_decode(const nfc_connstring connstring, struct pn53x_usb_de
|
||||
|
||||
int res = sscanf(connstring, "%[^:]:%[^:]:%[^:]", driver_name, dirname, filename);
|
||||
|
||||
if (!res || (0 != strcmp(driver_name, PN53X_USB_DRIVER_NAME))) {
|
||||
if (!res || ((0 != strcmp(driver_name, PN53X_USB_DRIVER_NAME)) && (0 != strcmp(driver_name, "usb")))) {
|
||||
// Driver name does not match.
|
||||
res = 0;
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user