Fix CMD_T55XX_WRITE_BLOCK expecting data and sending NULL
This commit is contained in:
1 parent
6caf571a44
commit
0e827b1083
10 files changed
+20
-10
No files matched your search
@@ -176,7 +176,8 @@ static int CmdVisa2kClone(const char *Cmd) {
|
||||
conn.block_after_ACK = false;
|
||||
}
|
||||
clearCommandBuffer();
|
||||
SendCommandMIX(CMD_T55XX_WRITE_BLOCK, blocks[i], i, 0, NULL, 0);
|
||||
uint8_t data[] = {0};
|
||||
SendCommandMIX(CMD_T55XX_WRITE_BLOCK, blocks[i], i, 0, data, sizeof(data));
|
||||
if (!WaitForResponseTimeout(CMD_ACK, &resp, T55XX_WRITE_TIMEOUT)) {
|
||||
PrintAndLogEx(WARNING, "Error occurred, device did not respond during write operation.");
|
||||
return -1;
|
||||
|
||||
Reference in new issue
Block a user