mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-14 18:48:13 -07:00
Improved hf iclass tear erase phase readability
Improved readability of erase phase during iclass tear (client and arm side). It is redundant to see a list of FF during the erase phase (which can be pretty lengthy), so it will only show it once when all bits are FF and then will resume printing the moment bits start changing again post erase phase.
This commit is contained in:
parent
04cfe2a43e
commit
c32f655023
2 changed files with 12 additions and 7 deletions
|
@ -2311,11 +2311,13 @@ void iClass_TearBlock(iclass_tearblock_req_t *msg) {
|
|||
if (memcmp(data_read, ff_data, PICOPASS_BLOCK_SIZE) == 0 &&
|
||||
memcmp(data_read_orig, ff_data, PICOPASS_BLOCK_SIZE) != 0) {
|
||||
|
||||
erase_phase = true;
|
||||
DbpString("");
|
||||
DbpString(_CYAN_("Erase phase hit... ALL ONES"));
|
||||
if(erase_phase == false){
|
||||
DbpString("");
|
||||
DbpString(_CYAN_("Erase phase hit... ALL ONES"));
|
||||
|
||||
iclass_cmp_print(data_read_orig, data_read, "Original: ", "Read: ");
|
||||
iclass_cmp_print(data_read_orig, data_read, "Original: ", "Read: ");
|
||||
}
|
||||
erase_phase = true;
|
||||
|
||||
} else {
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue