mirror of
https://github.com/nfc-tools/libnfc.git
synced 2026-03-14 11:33:48 +00:00
nfc_target_init() function returns now 0 on succes and libnfc error code on failure.
This commit is contained in:
@@ -354,7 +354,7 @@ main (int argc, char *argv[])
|
||||
|
||||
printf ("Connected to the NFC emulator device: %s\n", nfc_device_get_name (pndTarget));
|
||||
|
||||
if (!nfc_target_init (pndTarget, &ntEmulatedTarget, abtCapdu, &szCapduLen)) {
|
||||
if (nfc_target_init (pndTarget, &ntEmulatedTarget, abtCapdu, &szCapduLen) < 0) {
|
||||
ERR ("%s", "Initialization of NFC emulator failed");
|
||||
if (!target_only_mode) {
|
||||
nfc_disconnect (pndInitiator);
|
||||
|
||||
Reference in New Issue
Block a user