As the title says, i'm trying to create a tree menu with switches and arrays. Here is my current problem. Essentially when I pick Case 1 on the LCD Menu, it brings me to Case 1, but if I pick Case 2, it also brings me to Case 1. Can someone maybe point the problem? I cannot share the whole code due to confidentially reasons...only this.
Thanks
Code:void Navigate() { char MenuArray[4]; if (channel != lastChannel && valueEditing == false) { //updates the cursor position if button counter changed and 'value editing mode' is not running ScrollCursor(); } if(enterPressed == true) { switch(MenuArray[1]) { case 1: Menu1(); break; case 2: Menu2(); break; case 3: Menu3(); break; case 4: //Go to error diagnostic (4.1.0.0) Menu4(); break; default: break; } } }