style
This commit is contained in:
@@ -397,12 +397,12 @@ static int CmdAWIDClone(const char *Cmd) {
|
|||||||
clearCommandBuffer();
|
clearCommandBuffer();
|
||||||
|
|
||||||
t55xx_write_block_t ng;
|
t55xx_write_block_t ng;
|
||||||
|
|
||||||
ng.data = blocks[i];
|
ng.data = blocks[i];
|
||||||
ng.pwd = 0;
|
ng.pwd = 0;
|
||||||
ng.blockno = i;
|
ng.blockno = i;
|
||||||
ng.flags = 0;
|
ng.flags = 0;
|
||||||
|
|
||||||
SendCommandNG(CMD_T55XX_WRITE_BLOCK, (uint8_t *)&ng, sizeof(ng));
|
SendCommandNG(CMD_T55XX_WRITE_BLOCK, (uint8_t *)&ng, sizeof(ng));
|
||||||
if (!WaitForResponseTimeout(CMD_T55XX_WRITE_BLOCK, &resp, T55XX_WRITE_TIMEOUT)) {
|
if (!WaitForResponseTimeout(CMD_T55XX_WRITE_BLOCK, &resp, T55XX_WRITE_TIMEOUT)) {
|
||||||
PrintAndLogEx(WARNING, "Error occurred, device did not respond during write operation.");
|
PrintAndLogEx(WARNING, "Error occurred, device did not respond during write operation.");
|
||||||
|
|||||||
@@ -297,7 +297,7 @@ static int CmdFdxClone(const char *Cmd) {
|
|||||||
ng.pwd = 0;
|
ng.pwd = 0;
|
||||||
ng.blockno = i;
|
ng.blockno = i;
|
||||||
ng.flags = 0;
|
ng.flags = 0;
|
||||||
|
|
||||||
SendCommandNG(CMD_T55XX_WRITE_BLOCK, (uint8_t *)&ng, sizeof(ng));
|
SendCommandNG(CMD_T55XX_WRITE_BLOCK, (uint8_t *)&ng, sizeof(ng));
|
||||||
if (!WaitForResponseTimeout(CMD_T55XX_WRITE_BLOCK, &resp, T55XX_WRITE_TIMEOUT)) {
|
if (!WaitForResponseTimeout(CMD_T55XX_WRITE_BLOCK, &resp, T55XX_WRITE_TIMEOUT)) {
|
||||||
PrintAndLogEx(WARNING, "Error occurred, device did not respond during write operation.");
|
PrintAndLogEx(WARNING, "Error occurred, device did not respond during write operation.");
|
||||||
|
|||||||
@@ -165,14 +165,14 @@ static int CmdJablotronClone(const char *Cmd) {
|
|||||||
conn.block_after_ACK = false;
|
conn.block_after_ACK = false;
|
||||||
}
|
}
|
||||||
clearCommandBuffer();
|
clearCommandBuffer();
|
||||||
|
|
||||||
t55xx_write_block_t ng;
|
t55xx_write_block_t ng;
|
||||||
ng.data = blocks[i];
|
ng.data = blocks[i];
|
||||||
ng.pwd = 0;
|
ng.pwd = 0;
|
||||||
ng.blockno = i;
|
ng.blockno = i;
|
||||||
ng.flags = 0;
|
ng.flags = 0;
|
||||||
|
|
||||||
SendCommandNG(CMD_T55XX_WRITE_BLOCK, (uint8_t *)&ng, sizeof(ng));
|
SendCommandNG(CMD_T55XX_WRITE_BLOCK, (uint8_t *)&ng, sizeof(ng));
|
||||||
if (!WaitForResponseTimeout(CMD_T55XX_WRITE_BLOCK, &resp, T55XX_WRITE_TIMEOUT)) {
|
if (!WaitForResponseTimeout(CMD_T55XX_WRITE_BLOCK, &resp, T55XX_WRITE_TIMEOUT)) {
|
||||||
PrintAndLogEx(WARNING, "Error occurred, device did not respond during write operation.");
|
PrintAndLogEx(WARNING, "Error occurred, device did not respond during write operation.");
|
||||||
return -1;
|
return -1;
|
||||||
|
|||||||
Reference in New Issue
Block a user