diff options
Diffstat (limited to 'flash.c')
-rw-r--r-- | flash.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -525,7 +525,7 @@ static void initFlashValues(FlashStruct *mem) mem->enable_avrq_extra_ampls=0; - for (i=0; i<points_in_range; i++) { + for (i=0; i<old_range_size_ten; i++) { mem->vcc1_dacval[0][0][0][i]=0; mem->vcc1_pwl[0][0][0][i]=0.0; mem->vcc2_dacval[0][0][0][i]=0; @@ -541,7 +541,7 @@ static void initFlashValues(FlashStruct *mem) power_of_two=24.0e-9; for (j=0; j<timing_ranges; j++) { for (k=0; k<timing_polarities; k++) { - for (m=0; m<points_in_range; m++) { + for (m=0; m<old_range_size_ten; m++) { mem->slew_pwl[i][j][k][m]=0.0; mem->slew_dacval[i][j][k][m]=0; @@ -616,7 +616,7 @@ static void initFlashValues(FlashStruct *mem) power_of_two=20.0e-9; for (j=0; j<ampl_ranges; j++) { for (k=0; k<ampl_polarities; k++) { - for (m=0; m<points_in_range; m++) { + for (m=0; m<old_range_size_ten; m++) { if (m==0) { mem->rise_time_dacval[i][j][k][m]=dac_max; mem->rise_time_pwl[i][j][k][m]=(1e-9+power_of_two); |