rework ping

This commit is contained in:
Philippe Teuwen committed 2019-05-07 23:35:09 +02:00
1 parent bf0ab55833
commit 2f1061f95b
8 files changed
+25 -36

No files matched your search

+4 -4
View File
@@ -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;
}