rework ping

This commit is contained in:
Philippe Teuwen 2019-05-07 23:35:09 +02:00
commit 2f1061f95b
8 changed files with 25 additions and 36 deletions

View file

@ -87,12 +87,12 @@ static int usage_lf_awid_brute(void) {
}
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;
}