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

@ -383,7 +383,13 @@ static int CmdAWIDClone(const char *Cmd) {
PacketResponseNG resp;
// fast push mode
conn.block_after_ACK = true;
for (uint8_t i = 0; i < 4; i++) {
if (i == 3) {
// 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)) {