summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;