i want help regarding this code, the do-while loop inside "in Bold" is completely ignored, i inserted dummy subroutines inside to see where the execution was going but all i could see was the parent do-while Loop in italics that was being executed again and again. note: the Parent do-while is intended to be superlooped, but the do-while (in bold) is for cheking the Password and displaying the Lock Screen which is not being executed, after displaying Home_Screen(); the program waits for the input by the statement while(Keypad_Input() == False); and after that it never enters the do-while loop.
in short the Code Between the Stars is not Executed
void Start() { Lock_State = Closed; do { Home_Screen(); while(Keypad_Input() == False);// Wait for a key to be pressed. //***************************************************************************************** do{ Lock_Screen(); Keypad_Instance(5,2,8,0,'C'); // 5 character password at pos 2,8, Hidden and 'C' is the break Character Check_Lock1(); //Check the Password, if true then Lock_State=Open if(Lock_State == Open)// Lock is Open break; else { LCD_Cursor_XY(3,7); LCD_Text("RETRY !!!"); //on entering Wrong Password } }while(Lock_State == Closed); Main_Menu1_Instance(); //****************************************************************************************** }while(1); }