diff options
-rw-r--r-- | menus.c | 10 |
1 files changed, 6 insertions, 4 deletions
@@ -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; |