rework ping
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user