Menu system broken

Dependencies:   ANSITermMenuSystem

Fork of menuSystemMbed by Ryan Scott

Revision:
7:df9f5b6dd4ed
Parent:
4:1178a1905490
--- a/HANDLER_OutputPage.cpp	Sun Apr 21 20:46:28 2013 +0000
+++ b/HANDLER_OutputPage.cpp	Fri Apr 26 16:17:18 2013 +0000
@@ -5,7 +5,8 @@
 #include "console.h"
 
 extern BusInOut switches; //(p21, p22, p23, p24)
-extern MainMenu pageMenu[MAXPAGES ];
+extern MainMenu pageMenu[MAXPAGES];
+extern volatile bool exittorecord;
 
 
 int OutputPageHandler()
@@ -41,7 +42,7 @@
                 case 0x07:
                     userSelection = pageMenu[OUTPUT].getHighlightedItem() ;
                     pageMenu[OUTPUT].removeselection();
-                    pageMenu[OUTPUT].selection();
+                    pageMenu[OUTPUT].selection();                  
                     break;
                 }//eo select
 
@@ -69,6 +70,9 @@
                     }
 */                    
                 wait_ms(200);
+                if (exittorecord == true)
+                 break;
+                
             }//eo if kbhit
         }//eo while
         return userSelection;