Menu system broken

Dependencies:   ANSITermMenuSystem

Fork of menuSystemMbed by Ryan Scott

Revision:
8:6ddb8c26387a
Parent:
7:df9f5b6dd4ed
--- a/HANDLER_PlaybackmenuPage.cpp	Fri Apr 26 16:17:18 2013 +0000
+++ b/HANDLER_PlaybackmenuPage.cpp	Sat May 04 17:37:57 2013 +0000
@@ -7,6 +7,7 @@
 extern BusInOut switches; //(p21, p22, p23, p24)
 extern MainMenu pageMenu[MAXPAGES ];
 extern volatile bool exittorecord;
+extern Serial pc;
 
 int PlaybackmenuPageHandler()
 {
@@ -39,8 +40,12 @@
                     break;
                 case 0x07:
                     pageMenu[PLAYBACK].erase();
-                    userSelection = pageMenu[PLAYBACK].getHighlightedItem() - PLAYBACKMENUOFFSET;
+                    
+                    if (pageMenu[PLAYBACK].getHighlightedItem()== 702) userSelection = 9;
+                    if (pageMenu[PLAYBACK].getHighlightedItem()== 701) userSelection = 8;
                     exitCurrentMenu = true;
+       //             pc.printf("userselction: %d \n", userSelection);
+         //           pc.printf("highlighteditem: %d \n", pageMenu[PLAYBACK].getHighlightedItem());
                     break;
                 }//eo select
             wait_ms(200);