nfc-mfultralight: also set failure state on uid write error
Currently, we return false, and after turning set the bFailure state. This is of course not possible. Signed-off-by: Olliver Schinagl <oliver@schinagl.nl>
This commit is contained in:
parent
ed62b01a0f
commit
a4bc1b9f6c
@ -271,8 +271,8 @@ write_card(bool write_otp, bool write_lock, bool write_uid)
|
||||
} else {
|
||||
if (!check_magic()) {
|
||||
printf("\nUnable to unlock card - are you sure the card is magic?\n");
|
||||
return false;
|
||||
bFailure = false;
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user