diff options
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; |