mirror of
https://github.com/nfc-tools/libnfc.git
synced 2026-02-19 08:16:35 +00:00
Add timeout parameter to nfc_emulate_target() function.
Fixes issue 219. Thanks to raidolinja.
This commit is contained in:
@@ -197,7 +197,7 @@ main(int argc, char *argv[])
|
||||
printf("NFC device: %s opened\n", nfc_device_get_name(pnd));
|
||||
printf("Emulating NDEF tag now, please touch it with a second NFC device\n");
|
||||
|
||||
if (nfc_emulate_target(pnd, &emulator) < 0) {
|
||||
if (nfc_emulate_target(pnd, &emulator, 0) < 0) {
|
||||
goto error;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user