Nested if statement in C not executing inner if
Struggling (newbie) with a nested if in C, probably doing something stupid. Basically a switch down tester which determines whether just down for a second or longer. void SwitchTest(void) { __delay_ms(3000); // LEDCOM = LED_ON; // Connect Bar Common LED1 = LED_OFF; LED2 = LED_OFF; LED3 = LED_OFF; LED4 = LED_OFF; LED5 = LED_OFF; if