Skip to content

Commit

Permalink
Fix number of blocks written
Browse files Browse the repository at this point in the history
A strange move changed the way written pages are bound in commit ed62b01.
As a result the last 3 blocks weren't written anymore.
  • Loading branch information
doegox committed Feb 17, 2017
1 parent 11bcf05 commit b86b7ef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utils/nfc-mfultralight.c
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@ write_card(bool write_otp, bool write_lock, bool write_uid)
}
}

for (uint32_t page = uiSkippedPages; page <= ((uiBlocks / 4) * 4); page++) {
for (uint32_t page = uiSkippedPages; page <= uiBlocks; page++) {
if ((page == 0x2) && (!write_lock)) {
printf("s");
uiSkippedPages++;
Expand Down

0 comments on commit b86b7ef

Please sign in to comment.