summaryrefslogtreecommitdiff
path: root/reader.c
diff options
context:
space:
mode:
Diffstat (limited to 'reader.c')
-rw-r--r--reader.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/reader.c b/reader.c
index f90ea52..7bc20e3 100644
--- a/reader.c
+++ b/reader.c
@@ -8,6 +8,7 @@
#include "nfcommander.h"
#include "reader.h"
#include "config.h"
+#include "command.h"
#define MAX_PLUGIN_PATH NAME_MAX
#define DEFAULT_POLL_TIMEOUT 1000
@@ -148,8 +149,7 @@ static int reader_process(){
printf("Slot %2lu: ", n);
reader_print_tag(tags[n].info);
printf(" valid\n");
- printf("%s\n", tags[n].info.static_data);
- //TODO
+ command_start(&(tags[n].info));
return 0;
}
@@ -159,6 +159,7 @@ static int reader_process(){
else{
if(tags[n].flags & FLAG_ACTIVE){
//tag was removed - free any allocated members
+ command_stop(&(tags[n].info));
tag_info_free(&(tags[n].info));
printf("Tag in slot %lu removed\n", n);
}