if t_led_color was an array, you could do this much more simply as:

```C++
if (led_thread_runcount & 1) {
    lf (t_led_blink)
        setLEDColor(LED_OFF):
    led_interval = LED_OFFTIME;
} else {
    setLEDColor(t_led_color[(led_thread_runcount / 2) % 6]);
    led_interval = (led_thread_runcount & 1) : LED_ONTIME;
}
led_thread_runcount++;
```