summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael J. Chudobiak <mjc@avtechpulse.com>2014-08-26 13:17:43 -0400
committerMichael J. Chudobiak <mjc@avtechpulse.com>2014-08-26 13:17:43 -0400
commit23d302a69fae5707ea14c3829b68d52305d63fcc (patch)
tree69caafa36dd0b110cd98b5f60958e1c615db1009
parent2bff39db07f23a1983ff099a94f1705917a1fd07 (diff)
Do not reset fix_pw_dac_val defaults until unit is fully programmed
-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;
}