Update nfc-mfclassic.c
Tweaking back the unlocked_read / write_block_zero after magic2 card discovered
This commit is contained in:
parent
20f22b97e7
commit
c71d7267ac
1 changed files with 2 additions and 0 deletions
|
@ -314,6 +314,7 @@ read_card(int read_unlocked)
|
|||
//need to use the R mode. We'll trigger a warning and let them proceed.
|
||||
if (magic2) {
|
||||
printf("Note: This card does not require an unlocked write (R) \n");
|
||||
read_unlocked = 0;
|
||||
} else {
|
||||
//If User has requested an unlocked read, but we're unable to unlock the card, we'll error out.
|
||||
if (!unlock_card()) {
|
||||
|
@ -393,6 +394,7 @@ write_card(int write_block_zero)
|
|||
//need to use the W mode. We'll trigger a warning and let them proceed.
|
||||
if (magic2) {
|
||||
printf("Note: This card does not require an unlocked write (W) \n");
|
||||
write_block_zero = 0
|
||||
} else {
|
||||
//If User has requested an unlocked write, but we're unable to unlock the card, we'll error out.
|
||||
if (!unlock_card()) {
|
||||
|
|
Loading…
Reference in a new issue