all LF sim: client waits till button pressed

This commit is contained in:
Philippe Teuwen 2019-05-09 00:08:59 +02:00
commit 2c10482279
19 changed files with 104 additions and 24 deletions

View file

@ -212,7 +212,11 @@ static int CmdIOProxSim(const char *Cmd) {
// size --- 64 bits == 8 bytes
clearCommandBuffer();
SendCommandOLD(CMD_FSK_SIM_TAG, high << 8 | low, invert << 8 | clk, sizeof(bits), bits, sizeof(bits));
return 0;
PacketResponseNG resp;
WaitForResponse(CMD_FSK_SIM_TAG, &resp);
if (resp.status!=PM3_EOPABORTED)
return resp.status;
return PM3_SUCCESS;
}
static int CmdIOProxClone(const char *Cmd) {