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:
Olliver Schinagl 2016-05-11 16:27:52 +02:00
parent ed62b01a0f
commit a4bc1b9f6c

View file

@ -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;
}
}