mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-14 10:37:23 -07:00
style
This commit is contained in:
parent
43608589e3
commit
83571f02a0
6 changed files with 23 additions and 24 deletions
|
@ -448,9 +448,9 @@ static int CmdPingNG(const char *Cmd) {
|
|||
uint8_t data[USB_CMD_DATA_SIZE] = {0};
|
||||
uint16_t cmd = CMD_PING;
|
||||
if (len >= 4)
|
||||
((uint32_t *)data)[0]=0xAABBCCDD;
|
||||
((uint32_t *)data)[0] = 0xAABBCCDD;
|
||||
if (len >= 8)
|
||||
((uint32_t *)data)[(len-1)/4] = 0xDDCCBBAA;
|
||||
((uint32_t *)data)[(len - 1) / 4] = 0xDDCCBBAA;
|
||||
SendCommandNG(cmd, data, len);
|
||||
if (WaitForResponseTimeout(CMD_ACK, &resp, 1000)) {
|
||||
PrintAndLogEx(NORMAL, "PingNG successful");
|
||||
|
@ -458,8 +458,7 @@ static int CmdPingNG(const char *Cmd) {
|
|||
PrintAndLogEx(NORMAL, "%08x -> %08x", 0xAABBCCDD, resp.arg[1]);
|
||||
if (len >= 8)
|
||||
PrintAndLogEx(NORMAL, "%08x -> %08x", 0xDDCCBBAA, resp.arg[2]);
|
||||
}
|
||||
else
|
||||
} else
|
||||
PrintAndLogEx(NORMAL, "PingNG failed");
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue