From 43b5f24651fe081a85f2def30f6f8023ae60ac1b Mon Sep 17 00:00:00 2001 From: Mike Date: Sat, 1 Jan 2000 00:21:21 +0900 Subject: Don't move arrow if only one mode. Fix amplitude mode list. --- menus.c | 10 ++++++---- 1 file 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; -- cgit