This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

cannot compare unsigned char with hexadecimal

Cannot compare unsigned char with hexadecimal

I have a code like that. The program won’t reach if condition when SBUF is 0xAA.
if (SBUF==0xaa)
{ AA_flag=1;
config[0]=170;
}

0