diff options
-rw-r--r-- | flash.c | 11 |
1 files changed, 5 insertions, 6 deletions
@@ -942,19 +942,18 @@ void fixFlash(FlashStruct *mem) { int i, fix_initial_constants; - float composite_min_burst_time[max_channels]; for (i=0; i<max_channels; i++) { - composite_min_burst_time[i]=mem->min_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; j<max_stored_settings; j++) { - if (mem->rcl_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]) { |