diff options
Diffstat (limited to 'board/cpc45')
-rw-r--r-- | board/cpc45/flash.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/board/cpc45/flash.c b/board/cpc45/flash.c index 6e81b9c..a289d08 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 |