This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

while statement problem

Hi All!

I want to evaluate the state of a pin to be sure i've got valid signal , not a glitch.

while((P1IN&BIT5)==0 and (BD1 < Glitch))

{

  //do something

}

i get an error:  Error[Pe018]: expected a ")"      C:\Documents and Settings\Alex_K\My Documents\MSP430\Projects\Test\main.c 125

What seems to be a problem?

**Attention** This is a public forum