nfc_target_receive_bytes() function returns now received bytes count on success and libnfc error code on failure.
This commit is contained in:
parent
a40e63ab9d
commit
ac6f652368
11 changed files with 35 additions and 35 deletions
|
|
@ -370,7 +370,7 @@ main (int argc, char *argv[])
|
|||
bool ret;
|
||||
if (!initiator_only_mode) {
|
||||
// Receive external reader command through target
|
||||
if (!nfc_target_receive_bytes(pndTarget,abtCapdu,&szCapduLen, 0)) {
|
||||
if (nfc_target_receive_bytes(pndTarget,abtCapdu,&szCapduLen, 0) < 0) {
|
||||
nfc_perror (pndTarget, "nfc_target_receive_bytes");
|
||||
if (!target_only_mode) {
|
||||
nfc_disconnect (pndInitiator);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue