mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-21 05:43:48 -07:00
restore config page (the last page) protection from wiping
This commit is contained in:
parent
597bfd6d19
commit
51a94d6d51
1 changed files with 2 additions and 2 deletions
|
@ -460,8 +460,8 @@ static int CmdFlashMemWipe(const char *Cmd) {
|
|||
return res;
|
||||
}
|
||||
|
||||
if (page < 0 || page > (spi_flash_pages - 1)) {
|
||||
PrintAndLogEx(WARNING, "page must be between 0 and %d", spi_flash_pages - 1);
|
||||
if (page < 0 || page > (spi_flash_pages - 2)) {
|
||||
PrintAndLogEx(WARNING, "page must be between 0 and %d", spi_flash_pages - 2);
|
||||
return PM3_EINVARG;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue