Move the pause statement
to before the serin statement. Also with serial communication I always use timeouts and qualifiers where I can.Code:MainMenu: gosub CLR serout Tx, 2, ["******** MAIN MENU ********", 13, 10, 10] serout Tx, 2, [" 1. Start Homing Sequence", 13, 10] serout Tx, 2, [" 2. Manual JOG Mode", 13, 10] serout Tx, 2, [" 3. Auto-Acquire Satellite", 13, 10] serout Tx, 2, [" 4. Stow Dish for Travel", 13, 10, 10] serout Tx, 2, ["Enter Your Selection:", 13, 10] Serin RX, 2, cereal If cereal = "1" then goto HomeDish If cereal = "2" then goto JogMode If cereal = "3" then goto AutoAcquire If cereal = "4" then goto StowDish serout TX, 2, [cereal] 'For debugging only pause 500 goto MainMenu




Bookmarks