mirror of
https://github.com/nfc-tools/libnfc.git
synced 2026-03-12 18:43:47 +00:00
check result of nfc_initiator_init() function in examples/ and utils/
This commit is contained in:
@@ -95,7 +95,10 @@ int main(int argc, const char* argv[])
|
||||
}
|
||||
|
||||
printf ("Connected to NFC reader: %s\n", nfc_device_get_name (pnd));
|
||||
nfc_initiator_init(pnd);
|
||||
if (nfc_initiator_init (pnd) < 0) {
|
||||
nfc_perror (pnd, "nfc_initiator_init");
|
||||
exit (EXIT_FAILURE);
|
||||
}
|
||||
|
||||
char *cmd;
|
||||
char *prompt = "> ";
|
||||
|
||||
Reference in New Issue
Block a user