mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-03-21 04:29:53 +08:00
chg: 'lf sim' - now uses fast push mode
This commit is contained in:
parent
0ee710ed92
commit
10ac5fd256
1 changed files with 7 additions and 0 deletions
|
@ -419,6 +419,9 @@ int CmdLFSim(const char *Cmd) {
|
|||
|
||||
PrintAndLogEx(DEBUG, "DEBUG: Sending [%d bytes]\n", GraphTraceLen);
|
||||
|
||||
// fast push mode
|
||||
conn.block_after_ACK = true;
|
||||
|
||||
//can send only 512 bits at a time (1 byte sent per bit...)
|
||||
for (uint16_t i = 0; i < GraphTraceLen; i += USB_CMD_DATA_SIZE) {
|
||||
clearCommandBuffer();
|
||||
|
@ -427,6 +430,10 @@ int CmdLFSim(const char *Cmd) {
|
|||
printf(".");
|
||||
fflush(stdout);
|
||||
}
|
||||
printf("\n");
|
||||
|
||||
// Disable fast mode and send a dummy command to make it effective
|
||||
conn.block_after_ACK = false;
|
||||
|
||||
PrintAndLogEx(NORMAL, "Simulating");
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue