summaryrefslogtreecommitdiff
path: root/flash.c
diff options
context:
space:
mode:
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;