summaryrefslogtreecommitdiff
path: root/flash.c
diff options
context:
space:
mode:
authorMike <mjc@avtechpulse.com>2000-01-01 00:37:29 +0900
committerMike <mjc@avtechpulse.com>2000-01-01 00:37:29 +0900
commit635528d0cb0590f5578cb6ab1d0e0b97b51f0c15 (patch)
treed0d051bf23134d0a8a072e591c1862e0752c6e66 /flash.c
parentefca4799e5dbb52fed6963b88d8c73e59b42e123 (diff)
First attempt at handling pwl_distort automatically when adding ampl cal points
Diffstat (limited to 'flash.c')
-rw-r--r--flash.c13
1 files changed, 10 insertions, 3 deletions
diff --git a/flash.c b/flash.c
index 05bd0ed..e518438 100644
--- a/flash.c
+++ b/flash.c
@@ -641,13 +641,20 @@ static void initFlashValues(FlashStruct *mem)
}
}
- for (j=0; j<10; j++)
- for (k=0; k<5; k++)
- for (m=0; m<2; m++) {
+ for (k=0; k<5; k++) {
+ for (m=0; m<2; m++) {
+ j=0;
+ mem->ampl_dacval[i][k][m][j]=0;
+ mem->ampl_pwl[i][k][m][j]=0.0;
+ mem->distort_dacval[i][k][m][j]=dac_max; /* EA shunt is max at zero ampl,
+ zero at max ampl */
+ for (j=1; j<10; j++) {
mem->ampl_dacval[i][k][m][j]=0;
mem->ampl_pwl[i][k][m][j]=0.0;
mem->distort_dacval[i][k][m][j]=0;
}
+ }
+ }
mem->ampl_dacval[i][0][0][1]=dac_max;
mem->ampl_pwl[i][0][0][1]=100.0;