mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-14 18:48:13 -07:00
chg: lf t55xx write - now uses NG frames.
This commit is contained in:
parent
09afadc965
commit
d2a4ade2af
15 changed files with 159 additions and 73 deletions
|
@ -395,9 +395,16 @@ static int CmdAWIDClone(const char *Cmd) {
|
|||
conn.block_after_ACK = false;
|
||||
}
|
||||
clearCommandBuffer();
|
||||
uint8_t data[] = {0};
|
||||
SendCommandMIX(CMD_T55XX_WRITE_BLOCK, blocks[i], i, 0, data, sizeof(data));
|
||||
if (!WaitForResponseTimeout(CMD_ACK, &resp, T55XX_WRITE_TIMEOUT)) {
|
||||
|
||||
t55xx_write_block_t ng;
|
||||
|
||||
ng.data = blocks[i];
|
||||
ng.pwd = 0;
|
||||
ng.blockno = i;
|
||||
ng.flags = 0;
|
||||
|
||||
SendCommandNG(CMD_T55XX_WRITE_BLOCK, (uint8_t *)&ng, sizeof(ng));
|
||||
if (!WaitForResponseTimeout(CMD_T55XX_WRITE_BLOCK, &resp, T55XX_WRITE_TIMEOUT)) {
|
||||
PrintAndLogEx(WARNING, "Error occurred, device did not respond during write operation.");
|
||||
return -1;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue