From 0d61572f6dc5821c90ba4f1916dc43f35ca7906f Mon Sep 17 00:00:00 2001 From: tharexde Date: Wed, 17 Jun 2020 23:50:52 +0200 Subject: [PATCH] replaced old "SendCommandMIX" by "SendCommandNG" --- client/src/cmdlfem4x50.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/client/src/cmdlfem4x50.c b/client/src/cmdlfem4x50.c index 28f4f124e..6a17796cd 100644 --- a/client/src/cmdlfem4x50.c +++ b/client/src/cmdlfem4x50.c @@ -456,7 +456,8 @@ int CmdEM4x50Info(const char *Cmd) { // call info command clearCommandBuffer(); - SendCommandMIX(CMD_LF_EM4X50_INFO, 0, 0, 0, &etd, sizeof(etd)); + SendCommandNG(CMD_LF_EM4X50_INFO, (uint8_t *)&etd, sizeof(etd)); + // get result if (!WaitForResponse(CMD_ACK, &resp)) { @@ -602,7 +603,8 @@ int CmdEM4x50Write(const char *Cmd) { return usage_lf_em4x50_write(); clearCommandBuffer(); - SendCommandMIX(CMD_LF_EM4X50_WRITE, 0, 0, 0, &etd, sizeof(etd)); + SendCommandNG(CMD_LF_EM4X50_WRITE, (uint8_t *)&etd, sizeof(etd)); + if (!WaitForResponse(CMD_ACK, &resp)) { PrintAndLogEx(WARNING, "\n timeout while waiting for reply.\n"); @@ -708,7 +710,7 @@ int CmdEM4x50WritePassword(const char *Cmd) { return usage_lf_em4x50_write_password(); clearCommandBuffer(); - SendCommandMIX(CMD_LF_EM4X50_WRITE_PASSWORD, 0, 0, 0, &etd, sizeof(etd)); + SendCommandNG(CMD_LF_EM4X50_WRITE_PASSWORD, (uint8_t *)&etd, sizeof(etd)); if (!WaitForResponse(CMD_ACK, &resp)) { PrintAndLogEx(WARNING, "\n timeout while waiting for reply.\n");