summaryrefslogtreecommitdiff
path: root/menus.c
diff options
context:
space:
mode:
authorMichael J. Chudobiak <mjc@avtechpulse.com>2013-10-02 14:53:07 -0400
committerMichael J. Chudobiak <mjc@avtechpulse.com>2013-10-02 14:53:07 -0400
commit6a15a14fc7069fd72522dd82b8c64a4bdee21f54 (patch)
tree5a80edfce1c59b8d7e4cba6f725f87290dee8b07 /menus.c
parent6264d1e20d7d37b1b2d1a5c0fb2c41e8ed203325 (diff)
do not show polarity sign for positive-only amplitudes
Diffstat (limited to 'menus.c')
-rw-r--r--menus.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/menus.c b/menus.c
index a2dc139..839e2cf 100644
--- a/menus.c
+++ b/menus.c
@@ -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 {