Jump to content

janne_aac

Members
  • Content Count

    1
  • Joined

  • Last visited

Everything posted by janne_aac

  1. 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(
×
×
  • Create New...