mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-21 13:53:55 -07:00
adjusting write validation to only print when successful in validating. Otherwise like old times. silence.
This commit is contained in:
parent
960d8c4db3
commit
44cb67c49b
4 changed files with 45 additions and 25 deletions
|
@ -168,7 +168,6 @@ static int CmdVisa2kClone(const char *Cmd) {
|
|||
print_blocks(blocks, 4);
|
||||
|
||||
uint8_t res = 0;
|
||||
|
||||
PacketResponseNG resp;
|
||||
|
||||
// fast push mode
|
||||
|
@ -190,14 +189,16 @@ static int CmdVisa2kClone(const char *Cmd) {
|
|||
|
||||
PrintAndLogEx(ERR, "Error occurred, device did not respond during write operation.");
|
||||
return PM3_ETIMEOUT;
|
||||
}
|
||||
}
|
||||
|
||||
// write block0, needs a detect.
|
||||
if (i == 0)
|
||||
t55xxAquireAndDetect(false, 0, blocks[i], false);
|
||||
|
||||
bool isok = t55xxVerifyWrite(i, 0, false, false, 0, 0, blocks[i]);
|
||||
if ( isok == false) {
|
||||
PrintAndLogEx(WARNING, "Couldn't verify write");
|
||||
if (t55xxVerifyWrite(i, 0, false, false, 0, 0xFF, blocks[i]) == false)
|
||||
res++;
|
||||
}
|
||||
}
|
||||
|
||||
if ( res == 0 )
|
||||
PrintAndLogEx(SUCCESS, "Success writing to tag");
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue