In SX Microcontrollers, SX/B Compiler and SX-Key Tool, peterverkaik wrote: RW Senser, Remember that cc1b removes any code and variables that are never referenced, or in this case, never reached (all code behind while (1) without a break inside the while). Change the while (1) to if (1) or add a line if (pinB0) break; inside the while (1) and the comments are where they should be. regards peter ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=203602#m204303 Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2007 (http://www.dotNetBB.com)