diff --git a/client/src/cmdlfem4x50.c b/client/src/cmdlfem4x50.c index fdcf48a99..cce348166 100644 --- a/client/src/cmdlfem4x50.c +++ b/client/src/cmdlfem4x50.c @@ -169,15 +169,15 @@ static void em4x50_seteml(uint8_t *src, uint32_t offset, uint32_t numofbytes) { PrintAndLogEx(INFO, "." NOLF); // fast push mode g_conn.block_after_ACK = true; - for (size_t i = offset; i < numofbytes; i += PM3_CMD_DATA_SIZE) { + for (size_t i = offset; i < numofbytes; i += PM3_CMD_DATA_SIZE_MIX) { - size_t len = MIN((numofbytes - i), PM3_CMD_DATA_SIZE); + size_t len = MIN((numofbytes - i), PM3_CMD_DATA_SIZE_MIX); if (len == numofbytes - i) { // Disable fast mode on last packet g_conn.block_after_ACK = false; } clearCommandBuffer(); - SendCommandOLD(CMD_LF_EM4X50_ESET, i, len, 0, src + i, len); + SendCommandMIX(CMD_LF_EM4X50_ESET, i, len, 0, src + i, len); PrintAndLogEx(NORMAL, "." NOLF); fflush(stdout); }