mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-01-08 01:06:37 +08:00
sing emulator memory for sim and restore
This commit is contained in:
parent
f412b20fc1
commit
033155e358
1 changed files with 11 additions and 1 deletions
|
@ -1123,13 +1123,23 @@ static void PacketReceived(PacketCommandNG *packet) {
|
|||
break;
|
||||
}
|
||||
case CMD_LF_EM4X50_SIM: {
|
||||
em4x50_sim((em4x50_data_t *)packet->data.asBytes);
|
||||
em4x50_sim();
|
||||
break;
|
||||
}
|
||||
case CMD_LF_EM4X50_STD_READ: {
|
||||
em4x50_std_read();
|
||||
break;
|
||||
}
|
||||
case CMD_LF_EM4X50_ESET: {
|
||||
//-----------------------------------------------------------------------------
|
||||
// Note: we call FpgaDownloadAndGo(FPGA_BITSTREAM_LF) here although FPGA is not
|
||||
// involved in dealing with emulator memory. But if it is called later, it might
|
||||
// destroy the Emulator Memory.
|
||||
//-----------------------------------------------------------------------------
|
||||
FpgaDownloadAndGo(FPGA_BITSTREAM_LF);
|
||||
emlSet(packet->data.asBytes, packet->oldarg[0], packet->oldarg[1]);
|
||||
break;
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifdef WITH_ISO15693
|
||||
|
|
Loading…
Reference in a new issue