From 3c2b20b195786723329e3b212e973ea1132184b0 Mon Sep 17 00:00:00 2001 From: Mike Date: Sat, 1 Jan 2000 01:07:44 +0900 Subject: make sure PW shift tweak works in 156E, fixes change from 6.4.29 aimed at AVPP/AVMR units --- device-functions.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'device-functions.c') diff --git a/device-functions.c b/device-functions.c index 9cf36ab..adf4cc4 100644 --- a/device-functions.c +++ b/device-functions.c @@ -3059,8 +3059,9 @@ int Set_VI_Control(int parameter,int channel,float new_ampl) tweaked_use_ampl += dist_frac * globals.Flash.pw_range_pol_tweaks[channel][range_i][pw_polarity]; - if ((range_i > 0) || (!globals.Flash.volt_ctrl_pw[channel]) ) { - // not used in bot range if bot range is voltage controlled + if ((range_i > 0) || (!globals.Flash.volt_ctrl_pw[channel]) || (globals.Flash.min_pw[channel] > 50.0e-9) ) { + // Not used in bot range if bot range is voltage controlled, for AVPPs and AVMRs. + // Do use it for wide voltage-controlled PW units, like CH2 of 156E. tweaked_use_ampl += globals.Flash.pulse_width_pol_tweak[channel][pw_polarity]; } @@ -3170,8 +3171,9 @@ int Set_VI_Control(int parameter,int channel,float new_ampl) if (parameter == pwl_pw_values) { tweaked_use_ampl += dist_frac * globals.Flash.pw_range_pol_tweaks[channel][range_i][pw_polarity]; - if ((range_i > 0) || (!globals.Flash.volt_ctrl_pw[channel]) ) { - // not used in bot range if bot range is voltage controlled + if ((range_i > 0) || (!globals.Flash.volt_ctrl_pw[channel]) || (globals.Flash.min_pw[channel] > 50.0e-9) ) { + // Not used in bot range if bot range is voltage controlled, for AVPPs and AVMRs. + // Do use it for wide voltage-controlled PW units, like CH2 of 156E. tweaked_use_ampl += globals.Flash.pulse_width_pol_tweak[channel][pw_polarity]; } } -- cgit