summaryrefslogtreecommitdiff
path: root/parser.c
diff options
context:
space:
mode:
authorMike <mjc@avtechpulse.com>2000-01-01 01:03:05 +0900
committerMike <mjc@avtechpulse.com>2000-01-01 01:03:05 +0900
commit272c3604bab1715c47b9eca8cbac172071015c0d (patch)
treeaf04e78b391eb93ca46273d26cb111f4347aa8f8 /parser.c
parentbdd26361af532467dd5925252ac16e7a5e56ea18 (diff)
Only ignore polarity when shown to user. Use polarity when considering calibration ranges.
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;