Add timeout parameter to nfc_emulate_target() function.

Fixes issue 219.

Thanks to raidolinja.
This commit is contained in:
Romuald Conty 2013-01-30 00:10:24 +01:00
parent b675db73be
commit cd2b03a08a
6 changed files with 34 additions and 10 deletions

View file

@ -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;
}