summaryrefslogtreecommitdiff
path: root/parser.c
diff options
context:
space:
mode:
Diffstat (limited to 'parser.c')
-rw-r--r--parser.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/parser.c b/parser.c
index 5c66167..ec8b563 100644
--- a/parser.c
+++ b/parser.c
@@ -1774,7 +1774,11 @@ static int Go_ampl_26(gchar** response, int channel, char *parameter,char *units
} else if (globals.ChannelState[channel].amp_mode==amp_mode_amplify) {
return query_string(response, "AMP");
} else {
- return query_float(response, globals.ChannelState[channel].amplitude);
+ if (globals.Flash.ignore_ampl_polarity[channel]) {
+ return query_float(response, fabs(globals.ChannelState[channel].amplitude));
+ } else {
+ return query_float(response, globals.ChannelState[channel].amplitude);
+ }
}
break;