Update nfc-mfclassic.c

chinese magic
This commit is contained in:
DrFellman 2021-12-13 19:35:43 +01:00 committed by GitHub
parent 3df7f25f11
commit d3fb148049
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -416,8 +416,8 @@ write_card(bool write_block_zero)
// Completely write the card, but skipping block 0 if we don't need to write on it
for (uiBlock = 0; uiBlock <= uiBlocks; uiBlock++) {
//Determine if we have to write block 0
if (!write_block_zero && uiBlock == 0) {
continue;
//if (!write_block_zero && uiBlock == 0) {
//continue;
}
// Authenticate everytime we reach the first sector of a new block
if (uiBlock == 1 || is_first_block(uiBlock)) {