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

@ -606,7 +606,7 @@ static int CmdHFiClassELoad(const char *Cmd) {
// Disable fast mode and send a dummy command to make it effective
conn.block_after_ACK = false;
SendCommandNG(CMD_PING, NULL, 0);
WaitForResponseTimeout(CMD_ACK, NULL, 1000);
WaitForResponseTimeout(CMD_PING, NULL, 1000);
PrintAndLogEx(SUCCESS, "sent %d bytes of data to device emulator memory", bytes_sent);
return 0;
@ -2038,7 +2038,7 @@ out:
// Disable fast mode and send a dummy command to make it effective
conn.block_after_ACK = false;
SendCommandNG(CMD_PING, NULL, 0);
WaitForResponseTimeout(CMD_ACK, NULL, 1000);
WaitForResponseTimeout(CMD_PING, NULL, 1000);
DropField();
free(pre);