diff options
author | Michael J. Chudobiak <mjc@avtechpulse.com> | 2014-08-26 13:17:43 -0400 |
---|---|---|
committer | Michael J. Chudobiak <mjc@avtechpulse.com> | 2014-08-26 13:17:43 -0400 |
commit | 23d302a69fae5707ea14c3829b68d52305d63fcc (patch) | |
tree | 69caafa36dd0b110cd98b5f60958e1c615db1009 | |
parent | 2bff39db07f23a1983ff099a94f1705917a1fd07 (diff) |
Do not reset fix_pw_dac_val defaults until unit is fully programmed
-rw-r--r-- | flash.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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; } |