summaryrefslogtreecommitdiff
path: root/board/cpc45/flash.c
diff options
context:
space:
mode:
Diffstat (limited to 'board/cpc45/flash.c')
-rw-r--r--board/cpc45/flash.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/board/cpc45/flash.c b/board/cpc45/flash.c
index 6e81b9c335..a289d08942 100644
--- a/board/cpc45/flash.c
+++ b/board/cpc45/flash.c
@@ -132,12 +132,12 @@ unsigned long flash_init(void)
#if CFG_MONITOR_BASE >= CFG_FLASH_BASE + FLASH_BANK_SIZE
flash_protect(FLAG_PROTECT_SET,
CFG_MONITOR_BASE,
- CFG_MONITOR_BASE + CFG_MONITOR_LEN - 1,
+ CFG_MONITOR_BASE + monitor_flash_len - 1,
&flash_info[1]);
#else
flash_protect(FLAG_PROTECT_SET,
CFG_MONITOR_BASE,
- CFG_MONITOR_BASE + CFG_MONITOR_LEN - 1,
+ CFG_MONITOR_BASE + monitor_flash_len - 1,
&flash_info[0]);
#endif
#endif