mirror of
https://github.com/nfc-tools/libnfc.git
synced 2026-07-24 12:41:54 +00:00
nfc_target_send_bits() function returns now sent bits count on success and libnfc error code on failure.
This commit is contained in:
@@ -205,7 +205,7 @@ main (int argc, char *argv[])
|
||||
// Test if we know how to respond
|
||||
if (szTxBits) {
|
||||
// Send and print the command to the screen
|
||||
if (!nfc_target_send_bits (pnd, pbtTx, szTxBits, NULL)) {
|
||||
if (nfc_target_send_bits (pnd, pbtTx, szTxBits, NULL) < 0) {
|
||||
nfc_perror (pnd, "nfc_target_send_bits");
|
||||
goto error;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user