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:
Philippe Teuwen 2017-02-17 09:56:31 +01:00
parent 11bcf05a75
commit b86b7efb10

View file

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