summaryrefslogtreecommitdiff
path: root/menus.c
diff options
context:
space:
mode:
authorroot <root@avtech.domain.avtechpulse.com>1970-01-01 09:05:52 +0900
committerroot <root@avtech.domain.avtechpulse.com>1970-01-01 09:05:52 +0900
commit4f174bb0d84e1a0cb51f7a9bf10f7917001f0e6f (patch)
treec1f1cc283cddf03c916075dde40709bb7594d902 /menus.c
parentb9aed70d02c6daa5bac9a9aa5f67c6c8c94358e0 (diff)
use 3 sig digits in fixed amplitude menu
Diffstat (limited to 'menus.c')
-rw-r--r--menus.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/menus.c b/menus.c
index 85f53a5..c7e60bc 100644
--- a/menus.c
+++ b/menus.c
@@ -1919,21 +1919,21 @@ static void Submenu_Display(int change_selection)
// hard-coded count of 10 - not ideal!
case (mode_ampl_fixed_point0):
use_ampl = globals.Flash.fixed_ampl_points[channel][0];
- String_Parameter_To_Text(use_ampl,2,"",fixed_ampl_units,&mode_name,YES,LCD_col_width);
+ String_Parameter_To_Text(use_ampl,3,"",fixed_ampl_units,&mode_name,YES,LCD_col_width);
if (fabs(globals.ChannelState[channel].amplitude-use_ampl)<globals.Flash.ampl_zero_equiv[channel]) {
current_operating_mode=i;
}
break;
case (mode_ampl_fixed_point1):
use_ampl = globals.Flash.fixed_ampl_points[channel][1];
- String_Parameter_To_Text(use_ampl,2,"",fixed_ampl_units,&mode_name,YES,LCD_col_width);
+ String_Parameter_To_Text(use_ampl,3,"",fixed_ampl_units,&mode_name,YES,LCD_col_width);
if (fabs(globals.ChannelState[channel].amplitude-use_ampl)<globals.Flash.ampl_zero_equiv[channel]) {
current_operating_mode=i;
}
break;
case (mode_ampl_fixed_point2):
use_ampl = globals.Flash.fixed_ampl_points[channel][2];
- String_Parameter_To_Text(use_ampl,2,"",fixed_ampl_units,&mode_name,YES,LCD_col_width);
+ String_Parameter_To_Text(use_ampl,3,"",fixed_ampl_units,&mode_name,YES,LCD_col_width);
if (fabs(globals.ChannelState[channel].amplitude-use_ampl)<globals.Flash.ampl_zero_equiv[channel]) {
current_operating_mode=i;
}
@@ -1941,7 +1941,7 @@ static void Submenu_Display(int change_selection)
case (mode_ampl_fixed_point3):
use_ampl = globals.Flash.fixed_ampl_points[channel][3];
- String_Parameter_To_Text(use_ampl,2,"",fixed_ampl_units,&mode_name,YES,LCD_col_width);
+ String_Parameter_To_Text(use_ampl,3,"",fixed_ampl_units,&mode_name,YES,LCD_col_width);
if (fabs(globals.ChannelState[channel].amplitude-use_ampl)<globals.Flash.ampl_zero_equiv[channel]) {
current_operating_mode=i;
}
@@ -1949,42 +1949,42 @@ static void Submenu_Display(int change_selection)
case (mode_ampl_fixed_point4):
use_ampl = globals.Flash.fixed_ampl_points[channel][4];
- String_Parameter_To_Text(use_ampl,2,"",fixed_ampl_units,&mode_name,YES,LCD_col_width);
+ String_Parameter_To_Text(use_ampl,3,"",fixed_ampl_units,&mode_name,YES,LCD_col_width);
if (fabs(globals.ChannelState[channel].amplitude-use_ampl)<globals.Flash.ampl_zero_equiv[channel]) {
current_operating_mode=i;
}
break;
case (mode_ampl_fixed_point5):
use_ampl = globals.Flash.fixed_ampl_points[channel][5];
- String_Parameter_To_Text(use_ampl,2,"",fixed_ampl_units,&mode_name,YES,LCD_col_width);
+ String_Parameter_To_Text(use_ampl,3,"",fixed_ampl_units,&mode_name,YES,LCD_col_width);
if (fabs(globals.ChannelState[channel].amplitude-use_ampl)<globals.Flash.ampl_zero_equiv[channel]) {
current_operating_mode=i;
}
break;
case (mode_ampl_fixed_point6):
use_ampl = globals.Flash.fixed_ampl_points[channel][6];
- String_Parameter_To_Text(use_ampl,2,"",fixed_ampl_units,&mode_name,YES,LCD_col_width);
+ String_Parameter_To_Text(use_ampl,3,"",fixed_ampl_units,&mode_name,YES,LCD_col_width);
if (fabs(globals.ChannelState[channel].amplitude-use_ampl)<globals.Flash.ampl_zero_equiv[channel]) {
current_operating_mode=i;
}
break;
case (mode_ampl_fixed_point7):
use_ampl = globals.Flash.fixed_ampl_points[channel][7];
- String_Parameter_To_Text(use_ampl,2,"",fixed_ampl_units,&mode_name,YES,LCD_col_width);
+ String_Parameter_To_Text(use_ampl,3,"",fixed_ampl_units,&mode_name,YES,LCD_col_width);
if (fabs(globals.ChannelState[channel].amplitude-use_ampl)<globals.Flash.ampl_zero_equiv[channel]) {
current_operating_mode=i;
}
break;
case (mode_ampl_fixed_point8):
use_ampl = globals.Flash.fixed_ampl_points[channel][8];
- String_Parameter_To_Text(use_ampl,2,"",fixed_ampl_units,&mode_name,YES,LCD_col_width);
+ String_Parameter_To_Text(use_ampl,3,"",fixed_ampl_units,&mode_name,YES,LCD_col_width);
if (fabs(globals.ChannelState[channel].amplitude-use_ampl)<globals.Flash.ampl_zero_equiv[channel]) {
current_operating_mode=i;
}
break;
case (mode_ampl_fixed_point9):
use_ampl = globals.Flash.fixed_ampl_points[channel][9];
- String_Parameter_To_Text(use_ampl,2,"",fixed_ampl_units,&mode_name,YES,LCD_col_width);
+ String_Parameter_To_Text(use_ampl,3,"",fixed_ampl_units,&mode_name,YES,LCD_col_width);
if (fabs(globals.ChannelState[channel].amplitude-use_ampl)<globals.Flash.ampl_zero_equiv[channel]) {
current_operating_mode=i;
}