summaryrefslogtreecommitdiff
path: root/device-functions.c
diff options
context:
space:
mode:
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 - */