mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-21 05:43:48 -07:00
rework ping
This commit is contained in:
parent
bf0ab55833
commit
2f1061f95b
8 changed files with 25 additions and 36 deletions
|
@ -93,12 +93,12 @@ static int usage_lf_hid_brute(void) {
|
|||
|
||||
// sending three times. Didn't seem to break the previous sim?
|
||||
static bool sendPing(void) {
|
||||
SendCommandMIX(CMD_PING, 1, 2, 3, NULL, 0);
|
||||
SendCommandMIX(CMD_PING, 1, 2, 3, NULL, 0);
|
||||
SendCommandMIX(CMD_PING, 1, 2, 3, NULL, 0);
|
||||
SendCommandNG(CMD_PING, NULL, 0);
|
||||
SendCommandNG(CMD_PING, NULL, 0);
|
||||
SendCommandNG(CMD_PING, NULL, 0);
|
||||
clearCommandBuffer();
|
||||
PacketResponseNG resp;
|
||||
if (!WaitForResponseTimeout(CMD_ACK, &resp, 1000))
|
||||
if (!WaitForResponseTimeout(CMD_PING, &resp, 1000))
|
||||
return false;
|
||||
return true;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue