fast mode on LF techs using t55xx write block

This commit is contained in:
Philippe Teuwen 2019-05-08 22:43:35 +02:00
commit d088ed4232
10 changed files with 63 additions and 4 deletions

View file

@ -283,7 +283,13 @@ static int CmdFdxClone(const char *Cmd) {
PacketResponseNG resp;
// fast push mode
conn.block_after_ACK = true;
for (int i = 4; i >= 0; --i) {
if (i == 0) {
// Disable fast mode on last packet
conn.block_after_ACK = false;
}
clearCommandBuffer();
SendCommandMIX(CMD_T55XX_WRITE_BLOCK, blocks[i], i, 0, NULL, 0);
if (!WaitForResponseTimeout(CMD_ACK, &resp, T55XX_WRITE_TIMEOUT)) {