mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2026-05-12 11:18:11 -07:00
restore config page (the last page) protection from wiping
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user