Pros Problem

Hi Guys! I’m having some issues with autonomous routine selection. I adapted the sample code from the robot C website(http://www.robotc.net/blog/2012/05/18/advanced-applications-with-the-vex-lcd/). The lcd displays "Autonomous 1 " but doesn’t respond to any button presses. After about 10 seconds it runs a routine. Usually #4, but sometimes other ones too.

Any ideas? Thanks.

Here is the code:[http://pastebin.com/C8N4Uptr

Sorry that it is on paste bin. It’s just too long for the forum.:cool:](http://pastebin.com/C8N4Uptr)

You have a 2 second delay in the waitForPress() and waitForRelease() functions, drop that down to 10mS amd then see what happens.

btw, nested functions are not standard C.