mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-02-13 18:57:12 +08:00
chg: 'hf iclass eload' - use fast push mode.
This commit is contained in:
parent
918a46a984
commit
481d70b0da
1 changed files with 10 additions and 0 deletions
|
@ -586,6 +586,10 @@ static int CmdHFiClassELoad(const char *Cmd) {
|
||||||
free(dump);
|
free(dump);
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// fast push mode
|
||||||
|
conn.block_after_ACK = false;
|
||||||
|
|
||||||
//Send to device
|
//Send to device
|
||||||
uint32_t bytes_sent = 0;
|
uint32_t bytes_sent = 0;
|
||||||
uint32_t bytes_remaining = bytes_read;
|
uint32_t bytes_remaining = bytes_read;
|
||||||
|
@ -598,6 +602,12 @@ static int CmdHFiClassELoad(const char *Cmd) {
|
||||||
bytes_sent += bytes_in_packet;
|
bytes_sent += bytes_in_packet;
|
||||||
}
|
}
|
||||||
free(dump);
|
free(dump);
|
||||||
|
|
||||||
|
// Disable fast mode and send a dummy command to make it effective
|
||||||
|
conn.block_after_ACK = false;
|
||||||
|
SendCommandMIX(CMD_PING, 0, 0, 0, NULL, 0);
|
||||||
|
WaitForResponseTimeout(CMD_ACK, NULL, 1000);
|
||||||
|
|
||||||
PrintAndLogEx(SUCCESS, "sent %d bytes of data to device emulator memory", bytes_sent);
|
PrintAndLogEx(SUCCESS, "sent %d bytes of data to device emulator memory", bytes_sent);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue