mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2024-09-20 23:36:31 +08:00
fix logic for epurse updates
This commit is contained in:
parent
6229021f07
commit
4986959706
|
@ -1892,9 +1892,7 @@ void iClass_WriteBlock(uint8_t *msg) {
|
||||||
res = false;
|
res = false;
|
||||||
goto out;
|
goto out;
|
||||||
}
|
}
|
||||||
}
|
} else if ((pagemap != PICOPASS_NON_SECURE_PAGEMODE) && (payload->req.blockno == 3 || payload->req.blockno == 4)) {
|
||||||
|
|
||||||
if ((pagemap != PICOPASS_NON_SECURE_PAGEMODE) && (payload->req.blockno == 3 || payload->req.blockno == 4)) {
|
|
||||||
// check response. Key updates always return 0xffffffffffffffff
|
// check response. Key updates always return 0xffffffffffffffff
|
||||||
uint8_t all_ff[8] = {0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff};
|
uint8_t all_ff[8] = {0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff};
|
||||||
if (memcmp(all_ff, resp, sizeof(all_ff))) {
|
if (memcmp(all_ff, resp, sizeof(all_ff))) {
|
||||||
|
|
Loading…
Reference in a new issue