From 272c3604bab1715c47b9eca8cbac172071015c0d Mon Sep 17 00:00:00 2001 From: Mike Date: Sat, 1 Jan 2000 01:03:05 +0900 Subject: Only ignore polarity when shown to user. Use polarity when considering calibration ranges. --- parser.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'parser.c') 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; -- cgit