libnfc/test: fix some forgotten modifications due to the last revision.
This commit is contained in:
parent
22bea8d99b
commit
3b8598dde8
2 changed files with 5 additions and 5 deletions
|
@ -88,7 +88,7 @@ target_thread (void *arg)
|
||||||
cut_assert_operator_int (res, >, 0, cut_message ("Can't initialize NFC device as target: %s", nfc_strerror (device)));
|
cut_assert_operator_int (res, >, 0, cut_message ("Can't initialize NFC device as target: %s", nfc_strerror (device)));
|
||||||
if (res < 0) { thread_res = -1; return (void*) thread_res; }
|
if (res < 0) { thread_res = -1; return (void*) thread_res; }
|
||||||
|
|
||||||
res = nfc_target_receive_bytes (device, abtRx, 500);
|
res = nfc_target_receive_bytes (device, abtRx, sizeof (abtRx), 500);
|
||||||
cut_assert_operator_int (res, >, 0, cut_message ("Can't receive bytes from initiator: %s", nfc_strerror (device)));
|
cut_assert_operator_int (res, >, 0, cut_message ("Can't receive bytes from initiator: %s", nfc_strerror (device)));
|
||||||
szRx = (size_t) res;
|
szRx = (size_t) res;
|
||||||
const uint8_t abtAttRx[] = "Hello DEP target!";
|
const uint8_t abtAttRx[] = "Hello DEP target!";
|
||||||
|
|
|
@ -87,7 +87,7 @@ target_thread (void *arg)
|
||||||
if (res < 0) { thread_res = -1; return (void*) thread_res; }
|
if (res < 0) { thread_res = -1; return (void*) thread_res; }
|
||||||
|
|
||||||
// First pass
|
// First pass
|
||||||
res = nfc_target_receive_bytes (device, abtRx, 500);
|
res = nfc_target_receive_bytes (device, abtRx, sizeof (abtRx), 500);
|
||||||
cut_assert_operator_int (res, >, 0, cut_message ("Can't receive bytes from initiator: %s", nfc_strerror (device)));
|
cut_assert_operator_int (res, >, 0, cut_message ("Can't receive bytes from initiator: %s", nfc_strerror (device)));
|
||||||
szRx = (size_t) res;
|
szRx = (size_t) res;
|
||||||
|
|
||||||
|
@ -101,7 +101,7 @@ target_thread (void *arg)
|
||||||
if (res <= 0) { thread_res = -1; return (void*) thread_res; }
|
if (res <= 0) { thread_res = -1; return (void*) thread_res; }
|
||||||
|
|
||||||
// Second pass
|
// Second pass
|
||||||
res = nfc_target_receive_bytes (device, abtRx, 500);
|
res = nfc_target_receive_bytes (device, abtRx, sizeof (abtRx), 500);
|
||||||
cut_assert_operator_int (res, >, 0, cut_message ("Can't receive bytes from initiator: %s", nfc_strerror (device)));
|
cut_assert_operator_int (res, >, 0, cut_message ("Can't receive bytes from initiator: %s", nfc_strerror (device)));
|
||||||
szRx = (size_t) res;
|
szRx = (size_t) res;
|
||||||
|
|
||||||
|
@ -113,7 +113,7 @@ target_thread (void *arg)
|
||||||
if (res <= 0) { thread_res = -1; return (void*) thread_res; }
|
if (res <= 0) { thread_res = -1; return (void*) thread_res; }
|
||||||
|
|
||||||
// Third pass
|
// Third pass
|
||||||
res = nfc_target_receive_bytes (device, abtRx, 500);
|
res = nfc_target_receive_bytes (device, abtRx, sizeof (abtRx), 500);
|
||||||
cut_assert_operator_int (res, >, 0, cut_message ("Can't receive bytes from initiator: %s", nfc_strerror (device)));
|
cut_assert_operator_int (res, >, 0, cut_message ("Can't receive bytes from initiator: %s", nfc_strerror (device)));
|
||||||
szRx = (size_t) res;
|
szRx = (size_t) res;
|
||||||
|
|
||||||
|
@ -125,7 +125,7 @@ target_thread (void *arg)
|
||||||
if (res <= 0) { thread_res = -1; return (void*) thread_res; }
|
if (res <= 0) { thread_res = -1; return (void*) thread_res; }
|
||||||
|
|
||||||
// Fourth pass
|
// Fourth pass
|
||||||
res = nfc_target_receive_bytes (device, abtRx, 500);
|
res = nfc_target_receive_bytes (device, abtRx, sizeof (abtRx), 500);
|
||||||
cut_assert_operator_int (res, >, 0, cut_message ("Can't receive bytes from initiator: %s", nfc_strerror (device)));
|
cut_assert_operator_int (res, >, 0, cut_message ("Can't receive bytes from initiator: %s", nfc_strerror (device)));
|
||||||
szRx = (size_t) res;
|
szRx = (size_t) res;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue