summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael J. Chudobiak <mjc@avtechpulse.com>2012-09-05 13:33:14 -0400
committerMichael J. Chudobiak <mjc@avtechpulse.com>2012-09-05 13:33:14 -0400
commit2615223eeedfefc605839bea350911574368e668 (patch)
tree7a33841aa59c4cc2e0922ef62d57e41311c3904f
parent6d023eaf845b9d8dc6d7fe4a96e024b742ba27d4 (diff)
clear submenu screen under more conditions
-rw-r--r--menus.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/menus.c b/menus.c
index 8cca8a4..8a33f4d 100644
--- a/menus.c
+++ b/menus.c
@@ -1246,14 +1246,17 @@ static void Submenu_Display(int redraw)
current_operating_mode=0;
+ if ( (globals.MenuStatus.Type_Of_Menu != Submenu_On) ||
+ (globals.MenuStatus.Error_Screen == YES) ||
+ (globals.MenuStatus.Nonstd_Display == YES) ||
+ (!redraw)) {
+ LCD_clear();
+ }
+
globals.MenuStatus.Type_Of_Menu=Submenu_On;
globals.MenuStatus.Error_Screen=NO;
globals.MenuStatus.Nonstd_Display=NO;
- if (!redraw) {
- LCD_clear();
- }
-
Submenu_Numeric_Parameter=Show_No_Number;
Submenu_max_entry=0;