mirror of
https://github.com/nfc-tools/libnfc.git
synced 2026-03-13 19:13:44 +00:00
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:
@@ -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)) {
|
if ((page == 0x2) && (!write_lock)) {
|
||||||
printf("s");
|
printf("s");
|
||||||
uiSkippedPages++;
|
uiSkippedPages++;
|
||||||
|
|||||||
Reference in New Issue
Block a user