If LED_ON_RED is true then you set it to false so next time through loop() the else code is executed. This will happen very quickly, so both sets of code will be executed in quick succession
Are you trying to keep the LED on for a period ?
If LED_ON_RED is true then you set it to false so next time through loop() the else code is executed. This will happen very quickly, so both sets of code will be executed in quick succession
Are you trying to keep the LED on for a period ?