summaryrefslogtreecommitdiff
path: root/board/cu824/flash.c
diff options
context:
space:
mode:
Diffstat (limited to 'board/cu824/flash.c')
-rw-r--r--board/cu824/flash.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/board/cu824/flash.c b/board/cu824/flash.c
index 0cec41e..61b759e 100644
--- a/board/cu824/flash.c
+++ b/board/cu824/flash.c
@@ -125,12 +125,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