mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-02-26 00:55:19 +08:00
fix loading mifare keys to flash memory, forgot to wipe the new area which we extended to
This commit is contained in:
parent
58f9ba0abf
commit
4e6962864a
1 changed files with 3 additions and 0 deletions
|
@ -2516,6 +2516,9 @@ static void PacketReceived(PacketCommandNG *packet) {
|
|||
Flash_WriteEnable();
|
||||
Flash_Erase4k(3, 0xC);
|
||||
} else if (payload->startidx == DEFAULT_MF_KEYS_OFFSET) {
|
||||
Flash_CheckBusy(BUSY_TIMEOUT);
|
||||
Flash_WriteEnable();
|
||||
Flash_Erase4k(3, 0x8);
|
||||
Flash_CheckBusy(BUSY_TIMEOUT);
|
||||
Flash_WriteEnable();
|
||||
Flash_Erase4k(3, 0x9);
|
||||
|
|
Loading…
Reference in a new issue