summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--menus.c22
1 files changed, 20 insertions, 2 deletions
diff --git a/menus.c b/menus.c
index d36d7df..0cc5891 100644
--- a/menus.c
+++ b/menus.c
@@ -150,6 +150,9 @@
#define mode_rise_time_min 9300
#define mode_rise_time_max 9400
+#define mode_load_exit 9500
+#define mode_save_exit 9600
+
#define Submenu_maximum_entries 10
/* what parameter to adjust */
@@ -1526,22 +1529,25 @@ static void Submenu_Display(int change_selection)
case Submenu2_save:
title = g_strdup ("Save Settings:");
- Submenu_max_entry=3;
+ Submenu_max_entry=4;
Submenu_Structure[0]=mode_save_0;
Submenu_Structure[1]=mode_save_1;
Submenu_Structure[2]=mode_save_2;
Submenu_Structure[3]=mode_save_3;
+ Submenu_Structure[4]=mode_save_exit;
break;
case Submenu2_load:
title = g_strdup ("Load Settings:");
- Submenu_max_entry=3;
+ Submenu_max_entry=4;
Submenu_Structure[0]=mode_load_0;
Submenu_Structure[1]=mode_load_1;
Submenu_Structure[2]=mode_load_2;
Submenu_Structure[3]=mode_load_3;
+ Submenu_Structure[4]=mode_load_exit;
+
break;
case Submenu1_memory:
@@ -1847,6 +1853,12 @@ static void Submenu_Display(int change_selection)
case mode_save_3:
mode_name = g_strdup("Storage 3");
break;
+
+ case mode_load_exit:
+ case mode_save_exit:
+ mode_name = g_strdup("Exit");
+ break;
+
case mode_change_rs232:
mode_name = g_strdup("Change values");
break;
@@ -3320,6 +3332,12 @@ static int Submenu_Implement_Changes(void)
Set_Rcl(3);
globals.MenuStatus.Selected_Submenu=Submenu1_memory;
break;
+
+ case mode_load_exit:
+ case mode_save_exit:
+ globals.MenuStatus.Selected_Submenu=Submenu1_memory;
+ break;
+
case mode_save:
globals.MenuStatus.Selected_Submenu=Submenu2_save;
call_new_submenu=YES;