mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-21 05:43:48 -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
|
@ -236,8 +236,8 @@ static int CmdPyramidClone(const char *Cmd) {
|
|||
|
||||
// fast push mode
|
||||
conn.block_after_ACK = true;
|
||||
for (int8_t i = 4; i >= 0; i--) {
|
||||
if (i == 0) {
|
||||
for (int8_t i = 0; i < 5; i++) {
|
||||
if (i == 4) {
|
||||
// Disable fast mode on last packet
|
||||
conn.block_after_ACK = false;
|
||||
}
|
||||
|
@ -254,11 +254,13 @@ static int CmdPyramidClone(const char *Cmd) {
|
|||
return PM3_ETIMEOUT;
|
||||
}
|
||||
|
||||
bool isok = t55xxVerifyWrite(i, 0, false, false, 0, 0, blocks[i]);
|
||||
if ( isok == false) {
|
||||
PrintAndLogEx(WARNING, "Couldn't verify write");
|
||||
// write block0, needs a detect.
|
||||
if (i == 0)
|
||||
t55xxAquireAndDetect(false, 0, blocks[i], false);
|
||||
|
||||
if (t55xxVerifyWrite(i, 0, false, false, 0, 0xFF, blocks[i]) == false)
|
||||
res++;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
if ( res == 0 )
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue