Does anyone know why this doesn't work:
#define x 5;
...
if(state == x){... }
Does anyone know why I can't do the above comparison?
Are you sure you understand what a define does? Hint: drop the semicolon.