diff options
author | Mike <mjc@avtechpulse.com> | 2000-01-01 01:03:05 +0900 |
---|---|---|
committer | Mike <mjc@avtechpulse.com> | 2000-01-01 01:03:05 +0900 |
commit | 272c3604bab1715c47b9eca8cbac172071015c0d (patch) | |
tree | af04e78b391eb93ca46273d26cb111f4347aa8f8 /parser.c | |
parent | bdd26361af532467dd5925252ac16e7a5e56ea18 (diff) |
Only ignore polarity when shown to user. Use polarity when considering calibration ranges.
Diffstat (limited to 'parser.c')
-rw-r--r-- | parser.c | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -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; |