Hi Folks,
I am seeing a very odd behaviour.
This is roughly my test program:
void testFunc(char test)
{
if(test > 3)
{
LED0_on(); //Turn on LED 0
}
else
{
LED1_on(); //Turn on LED 1
}
}
…..
testFunc(1);
…..
I almost cant believe what I am seeing but what happens is that LED 0 is switched on. How can 1 > 3 be true???
This seems to work correctly:
void testFunc(