summaryrefslogtreecommitdiff
path: root/menus.c
diff options
context:
space:
mode:
authorMike <mjc@avtechpulse.com>2000-01-01 00:21:21 +0900
committerMike <mjc@avtechpulse.com>2000-01-01 00:21:21 +0900
commit43b5f24651fe081a85f2def30f6f8023ae60ac1b (patch)
treed224b7506eb42d4fe79060b6a44530a2dc54e933 /menus.c
parentfa36500b10f0e7354a6be828b2353d8c4d894f6e (diff)
Don't move arrow if only one mode. Fix amplitude mode list.INSTRUMENT_6_4_15b
Diffstat (limited to 'menus.c')
-rw-r--r--menus.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/menus.c b/menus.c
index 91f97ee..aa47c32 100644
--- a/menus.c
+++ b/menus.c
@@ -1351,9 +1351,6 @@ static void Submenu_Display(int change_selection)
case Submenu1_amp:
title = title_with_channel("Amplitude",globals.Flash.ChanKey_amplitude,channel);
- Submenu_max_entry=0;
- Submenu_Structure[0]=mode_amp_normal;
-
if (number_of_fixed_ampl_points(channel)>0) {
int fixed_count;
Submenu_max_entry = number_of_fixed_ampl_points(channel) - 1;
@@ -1364,6 +1361,11 @@ static void Submenu_Display(int change_selection)
Submenu_Numeric_Parameter=Show_amplitude+channel;
}
+ if ((globals.Flash.ea_enabled[channel]) || (globals.Flash.ext_amplify_enabled[channel])) {
+ Submenu_max_entry=0;
+ Submenu_Structure[0]=mode_amp_normal;
+ }
+
if (globals.Flash.ea_enabled[channel]) {
++Submenu_max_entry;
Submenu_Structure[Submenu_max_entry]=mode_amp_ea;
@@ -2135,7 +2137,7 @@ static void Submenu_Display(int change_selection)
static void Submenu_Move_Pointer(void)
{
- if (Submenu_max_entry>=0) {
+ if (Submenu_max_entry>0) {
LCD_write(Submenu_Selected_Item-base_entry,25," ");
++Submenu_Selected_Item;