clear emulator mem before fillig it

This commit is contained in:
iceman1001 2020-09-05 08:03:29 +02:00
commit 137517111f

View file

@ -2601,6 +2601,10 @@ all_found:
PrintAndLogEx(ERR, "Failed to save keys to file");
}
// clear emulator mem
clearCommandBuffer();
SendCommandNG(CMD_HF_MIFARE_EML_MEMCLR, NULL, 0);
PrintAndLogEx(SUCCESS, "transferring keys to simulator memory (Cmd Error: 04 can occur)");
for (current_sector_i = 0; current_sector_i < sectors_cnt; current_sector_i++) {