summaryrefslogtreecommitdiff
path: root/device-functions.c
diff options
context:
space:
mode:
authorMike <mjc@avtechpulse.com>2000-01-01 00:06:31 +0900
committerMike <mjc@avtechpulse.com>2000-01-01 00:06:31 +0900
commit7374cb92d45e71035c4bce654c9f5f32f69690c5 (patch)
tree266eeab985444f4e16bcc2b1c1ba63e17adab946 /device-functions.c
parent845fc78831dedcf1f0c529c1302cb04fead7acb6 (diff)
Do not switch polarity relay line in dual-chan dual-pol units, if CH2 ignores POL (like AVRK-DPF)
Diffstat (limited to 'device-functions.c')
-rw-r--r--device-functions.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/device-functions.c b/device-functions.c
index d3a5bef..b9fdb0f 100644
--- a/device-functions.c
+++ b/device-functions.c
@@ -390,7 +390,8 @@ int Set_Amplitude(int check_possible_only,int pol_override,int override_on,int w
}
// only do this on dual-polarity dual-channel units
- if ((globals.Flash.min_ampl[channel] * globals.Flash.max_ampl[channel]) < 0.0) {
+ if ( !globals.Flash.ignore_ampl_polarity[channel] &&
+ ((globals.Flash.min_ampl[channel] * globals.Flash.max_ampl[channel]) < 0.0)) {
int pol_bit = globals.Flash.polarity_xtra_rly[channel] + XTR_POS;
if (new_ampl<0.0) {
set_shiftreg_bits(SR_2, pol_bit, ONE_BIT, BIT_LOW); /* set O.POL line low to switch pol relay to - */