No need to connect/disconnect FeliCa targets.
This commit is contained in:
parent
6049acaf5a
commit
ac50476c99
5 changed files with 0 additions and 59 deletions
|
|
@ -51,10 +51,6 @@ main (void)
|
|||
}
|
||||
|
||||
for (int i = 0; tags[i]; i++) {
|
||||
int r = felica_connect (tags[i]);
|
||||
if (r < 0)
|
||||
errx (EXIT_FAILURE, "Cannot connect to FeliCa target");
|
||||
|
||||
printf ("Dumping %s tag %s\n", freefare_get_tag_friendly_name (tags[i]), freefare_get_tag_uid (tags[i]));
|
||||
printf ("Number\tName\tData\n");
|
||||
|
||||
|
|
@ -92,8 +88,6 @@ main (void)
|
|||
}
|
||||
printf ("\n");
|
||||
}
|
||||
|
||||
felica_disconnect (tags[i]);
|
||||
}
|
||||
|
||||
freefare_free_tags (tags);
|
||||
|
|
|
|||
|
|
@ -91,10 +91,6 @@ main (int argc, char *argv[])
|
|||
}
|
||||
|
||||
for (int i = 0; (!error) && tags[i]; i++) {
|
||||
int r = felica_connect (tags[i]);
|
||||
if (r < 0)
|
||||
errx (EXIT_FAILURE, "Cannot connect to FeliCa target");
|
||||
|
||||
int block = 1;
|
||||
uint8_t ndef_message[NDEF_BUFFER_SIZE];
|
||||
int ndef_space_left = NDEF_BUFFER_SIZE;
|
||||
|
|
@ -153,8 +149,6 @@ main (int argc, char *argv[])
|
|||
err (EXIT_FAILURE, "Can't write NDEF message");
|
||||
|
||||
fclose (f);
|
||||
|
||||
felica_disconnect (tags[i]);
|
||||
}
|
||||
|
||||
freefare_free_tags (tags);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue