summaryrefslogtreecommitdiff
path: root/flash.c
diff options
context:
space:
mode:
authorMichael J. Chudobiak <mjc@avtechpulse.com>2018-05-03 09:20:22 -0400
committerMichael J. Chudobiak <mjc@avtechpulse.com>2018-05-03 09:20:22 -0400
commit0aa3b9ec80108e690c2ca5157cb6d83087a40788 (patch)
tree8e757e5e05ba49c502e283758f9b28572080d142 /flash.c
parent2bddfb1c8457b4b6dbaeeb881bde35239ba0e165 (diff)
original number of points in each range was 10
Diffstat (limited to 'flash.c')
-rw-r--r--flash.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/flash.c b/flash.c
index e518438..c32d8d3 100644
--- a/flash.c
+++ b/flash.c
@@ -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);