mirror of
https://github.com/nfc-tools/libnfc.git
synced 2026-03-15 20:13:46 +00:00
Timeout is now integer.
This commit is contained in:
@@ -125,7 +125,7 @@ main (int argc, const char *argv[])
|
||||
}
|
||||
|
||||
printf("Initiator request received. Waiting for data...\n");
|
||||
if (!nfc_target_receive_bytes (pnd, abtRx, &szRx, NULL)) {
|
||||
if (!nfc_target_receive_bytes (pnd, abtRx, &szRx, 0)) {
|
||||
nfc_perror(pnd, "nfc_target_receive_bytes");
|
||||
goto error;
|
||||
}
|
||||
@@ -133,7 +133,7 @@ main (int argc, const char *argv[])
|
||||
printf ("Received: %s\n", abtRx);
|
||||
|
||||
printf ("Sending: %s\n", abtTx);
|
||||
if (!nfc_target_send_bytes (pnd, abtTx, sizeof(abtTx), NULL)) {
|
||||
if (!nfc_target_send_bytes (pnd, abtTx, sizeof(abtTx), 0)) {
|
||||
nfc_perror(pnd, "nfc_target_send_bytes");
|
||||
goto error;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user