From 7374cb92d45e71035c4bce654c9f5f32f69690c5 Mon Sep 17 00:00:00 2001 From: Mike Date: Sat, 1 Jan 2000 00:06:31 +0900 Subject: Do not switch polarity relay line in dual-chan dual-pol units, if CH2 ignores POL (like AVRK-DPF) --- device-functions.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 - */ -- cgit