I am getting the above error on the blue code below.
I don't know why this would happen, looks ok to me.
Sorry for not using code tags but the editor wouldnt let me highlight within the code tage
#include <stdio.h>
int main(int argc, char *argv[])
{
unsigned int upBtn=0x02;
unsigned int state=2, floor;
if (upBtn > 0){
if(upBtn & 0x01){
floor=0;
}
else if(upBtn & 0x02){
floor=1;
}
else if(upBtn & 0x04){
floor=2;
}
else if(upBtn & 0x08){
floor=3;
}
}
return 0;
}