- c.red = (remote_address() & 0x01u) * 128u;
- c.green = (remote_address() & 0x02u) * 128u;
- c.blue = (remote_address() & 0x04u) * 128u;
-
- d.red = d.green = d.blue = 128u;
-
- pwm_fade_rgb(&d, 0xffu, 0);
-
- PT_WAIT_UNTIL(&process->pt, pwm_target_reached());
-
- /* sleep .5s (remember: we are called every 100ms) */
- sleep = 5;
- while (sleep--)
- PT_YIELD(&process->pt);
-
- pwm_fade_rgb(&c, 0xffu, 0);
+ c.red = (remote_address() & 0x01u) ? DEBUG_COLORLEVEL : 0;
+ c.green = (remote_address() & 0x02u) ? DEBUG_COLORLEVEL : 0;
+ c.blue = (remote_address() & 0x04u) ? DEBUG_COLORLEVEL : 0;