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
parent 9440213d6b
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;