Fix number of blocks written
A strange move changed the way written pages are bound in commit ed62b01a
.
As a result the last 3 blocks weren't written anymore.
This commit is contained in:
parent
11bcf05a75
commit
b86b7efb10
1 changed files with 1 additions and 1 deletions
|
@ -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++;
|
||||
|
|
Loading…
Reference in a new issue