added automatically saving the hitag2 memory content to file

This commit is contained in:
roel@libnfc.org 2012-12-09 21:25:29 +00:00
commit ab4da50d99
3 changed files with 68 additions and 48 deletions

View file

@ -196,7 +196,8 @@ static void *main_loop(void *targ) {
}
int main(int argc, char* argv[]) {
srand(time(0));
if (argc < 2) {
printf("syntax: %s <port>\n\n",argv[0]);
return 1;