This is an automated email from Gerrit. Dominik Peklo ([email protected]) just uploaded a new patch set to Gerrit, which you can find at http://openocd.zylin.com/4591
-- gerrit commit c2a910b99794a0ed877d009820cdd33715703bb5 Author: Dominik Peklo <[email protected]> Date: Sun Jun 24 12:35:53 2018 +1000 apply patch set 6 Change-Id: I58afc0bf920ef6900d0f9c97e7fc7497b9f04fc8 Signed-off-by: Dominik Peklo <[email protected]> diff --git a/src/flash/nor/tcl.c b/src/flash/nor/tcl.c index f4c7ece..b4f375f 100644 --- a/src/flash/nor/tcl.c +++ b/src/flash/nor/tcl.c @@ -373,7 +373,7 @@ COMMAND_HANDLER(handle_flash_protect_command) return ERROR_FAIL; } - if (!(last <= (uint32_t)(p->num_sectors - 1))) { + if (!(last <= (uint32_t)(num_blocks - 1))) { command_print(CMD_CTX, "ERROR: " "last %s must be <= %" PRIu32, (p->num_prot_blocks) ? "block" : "sector", -- ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ OpenOCD-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/openocd-devel
