diff options
author | Michael J. Chudobiak <mjc@avtechpulse.com> | 2013-10-02 14:53:07 -0400 |
---|---|---|
committer | Michael J. Chudobiak <mjc@avtechpulse.com> | 2013-10-02 14:53:07 -0400 |
commit | 6a15a14fc7069fd72522dd82b8c64a4bdee21f54 (patch) | |
tree | 5a80edfce1c59b8d7e4cba6f725f87290dee8b07 | |
parent | 6264d1e20d7d37b1b2d1a5c0fb2c41e8ed203325 (diff) |
do not show polarity sign for positive-only amplitudes
-rw-r--r-- | menus.c | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -1098,7 +1098,11 @@ static void Display_Number_on_LCD(int Is_Item_Visible,int LCD_row,int LCD_col,ch case Show_amplitude: Submenu_Value=globals.ChannelState[channel].amplitude; - show_plus_sign=YES; + if ((globals.Flash.min_ampl[channel]<0.0) || (globals.Flash.min_vout[channel]<0.0)) { + show_plus_sign=YES; + } else { + show_plus_sign=NO; + } if (globals.Flash.voltage_enabled[channel]) { units = g_strdup("V"); } else { |