From a33693b1048b5893868b470d93e70ee35c4ef3d9 Mon Sep 17 00:00:00 2001 From: root Date: Thu, 1 Jan 1970 09:23:38 +0900 Subject: fixed setting of initial/rst burst separation --- flash.c | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/flash.c b/flash.c index 3e93b64..b2bd2f8 100644 --- a/flash.c +++ b/flash.c @@ -942,19 +942,18 @@ void fixFlash(FlashStruct *mem) { int i, fix_initial_constants; - float composite_min_burst_time[max_channels]; for (i=0; imin_burst_gap[i]; - if ((mem->min_burst_per[i] - mem->min_pw[i]) > composite_min_burst_time[i]) { - composite_min_burst_time[i] = mem->min_burst_per[i] - mem->min_pw[i]; + globals.Constraints.composite_min_burst_time[i]=mem->min_burst_gap[i]; + if ((mem->min_burst_per[i] - mem->min_pw[i]) > globals.Constraints.composite_min_burst_time[i]) { + globals.Constraints.composite_min_burst_time[i] = mem->min_burst_per[i] - mem->min_pw[i]; } int j; for (j=0; jrcl_burst_time[i][j] < composite_min_burst_time[i]) { - mem->rcl_burst_time[i][j]=composite_min_burst_time[i]; + if (mem->rcl_burst_time[i][j] < globals.Constraints.composite_min_burst_time[i]) { + mem->rcl_burst_time[i][j]=globals.Constraints.composite_min_burst_time[i]; ++fix_initial_constants; } if (mem->rcl_rise_time[i][j] < mem->min_rise_time[i]) { -- cgit