From ea4b23299633a54be00a463d1e24b422543342af Mon Sep 17 00:00:00 2001 From: fabalthazar Date: Sun, 6 Jun 2021 23:40:42 +0200 Subject: [PATCH] Fix de83dbb: duplicate BMP_MODE_FLASH_VERIFY -> BMP_MODE_FLASH_WRITE_VERIFY --- src/platforms/pc/cl_utils.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/platforms/pc/cl_utils.c b/src/platforms/pc/cl_utils.c index fc34496f..85e5caf4 100644 --- a/src/platforms/pc/cl_utils.c +++ b/src/platforms/pc/cl_utils.c @@ -419,9 +419,9 @@ int cl_execute(BMP_CL_OPTIONS_t *opt) if (opt->opt_flash_start == 0xffffffff) opt->opt_flash_start = lowest_flash_start; if ((opt->opt_flash_size == 0xffffffff) && - (opt->opt_mode != BMP_MODE_FLASH_WRITE) && + (opt->opt_mode != BMP_MODE_FLASH_WRITE) && (opt->opt_mode != BMP_MODE_FLASH_VERIFY) && - (opt->opt_mode != BMP_MODE_FLASH_VERIFY)) + (opt->opt_mode != BMP_MODE_FLASH_WRITE_VERIFY)) opt->opt_flash_size = lowest_flash_size; if (opt->opt_mode == BMP_MODE_SWJ_TEST) { switch (t->core[0]) {