mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-19 21:03:48 -07:00
relocated FpgaDownloadAndGo from em4x50_chk to appmain
This commit is contained in:
parent
ba963e1187
commit
8fde0ba047
2 changed files with 6 additions and 5 deletions
|
@ -1141,6 +1141,12 @@ static void PacketReceived(PacketCommandNG *packet) {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case CMD_LF_EM4X50_CHK: {
|
case CMD_LF_EM4X50_CHK: {
|
||||||
|
//-----------------------------------------------------------------------------
|
||||||
|
// 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);
|
||||||
em4x50_chk((uint8_t *)packet->data.asBytes);
|
em4x50_chk((uint8_t *)packet->data.asBytes);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
|
@ -926,11 +926,6 @@ void em4x50_chk(uint8_t *filename) {
|
||||||
uint32_t pwd = 0x0;
|
uint32_t pwd = 0x0;
|
||||||
|
|
||||||
#ifdef WITH_FLASH
|
#ifdef WITH_FLASH
|
||||||
//-----------------------------------------------------------------------------
|
|
||||||
// without calling FpgaDownloadAndGo the initial em4x50_chk call doesn't find
|
|
||||||
// a password (altough the correct password is in the dictionary)
|
|
||||||
//-----------------------------------------------------------------------------
|
|
||||||
FpgaDownloadAndGo(FPGA_BITSTREAM_LF);
|
|
||||||
|
|
||||||
BigBuf_free();
|
BigBuf_free();
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue