summaryrefslogtreecommitdiff
path: root/reader_yhy.c
diff options
context:
space:
mode:
Diffstat (limited to 'reader_yhy.c')
-rw-r--r--reader_yhy.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/reader_yhy.c b/reader_yhy.c
index 4c332ac..7e0d8c3 100644
--- a/reader_yhy.c
+++ b/reader_yhy.c
@@ -58,8 +58,9 @@ int scan(){
yhy_sync_select(reader_fd, card.uid, card.uid_length, &sak);
//TODO parse ATQA and SAK to detect tag type
- if(reader_tag_present(card) == TAG_READ_REQUESTED){
+ if(reader_tag_present(0, card) == TAG_READ_REQUESTED){
//TODO read card data
+ reader_tag_present(FLAG_TAG_LOCKED, card);
}
yhy_sync_hlta(reader_fd);