summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--flash.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/flash.c b/flash.c
index 54bc17e..f71f19a 100644
--- a/flash.c
+++ b/flash.c
@@ -978,7 +978,9 @@ void fixFlash(FlashStruct *mem)
}
// for AVM-6-B in particular
- if ((mem->max_freq[i] >= 5e6) && (mem->fix_pw_dac_val[i] < dac_max/4)) {
+ if ( (globals.Flash.fully_programmed==All_Programmed) &&
+ (mem->max_freq[i] >= 5e6) &&
+ (mem->fix_pw_dac_val[i] < dac_max/4)) {
mem->fix_pw_dac_val[i] = dac_max/4;
++fix_initial_constants;
}