This commit is contained in:
iceman1001 2020-05-27 17:44:54 +02:00
commit b42c5f59e1

View file

@ -363,7 +363,7 @@ static int CmdLFHitagSim(const char *Cmd) {
clearCommandBuffer(); clearCommandBuffer();
if (tag_mem_supplied) { if (tag_mem_supplied) {
SendCommandOLD(cmd, 1, 0, 0, data, datalen); SendCommandMIX(cmd, 1, 0, 0, data, datalen);
} else { } else {
SendCommandMIX(cmd, 0, 0, 0, NULL, 0); SendCommandMIX(cmd, 0, 0, 0, NULL, 0);
} }
@ -693,7 +693,7 @@ static int CmdLFHitagWriter(const char *Cmd) {
} }
clearCommandBuffer(); clearCommandBuffer();
SendCommandOLD(CMD_LF_HITAGS_WRITE, htf, 0, arg2, &htd, sizeof(htd)); SendCommandMIX(CMD_LF_HITAGS_WRITE, htf, 0, arg2, &htd, sizeof(htd));
PacketResponseNG resp; PacketResponseNG resp;
if (!WaitForResponseTimeout(CMD_ACK, &resp, 4000)) { if (!WaitForResponseTimeout(CMD_ACK, &resp, 4000)) {
PrintAndLogEx(WARNING, "timeout while waiting for reply."); PrintAndLogEx(WARNING, "timeout while waiting for reply.");