diff options
Diffstat (limited to 'flash.c')
-rw-r--r-- | flash.c | 13 |
1 files changed, 10 insertions, 3 deletions
@@ -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; |