     }
 
     // check to see if the transtion is finished
-    if (g_transition_end && millis() >= g_transition_end)
+    if (g_transition_end && cmillis() >= g_transition_end)
     {
         g_transition_end = 0;
         g_transition_steps = 0;

// ---- prototypes -----
void next_pattern(void);

void show_color(color_t *col)
{
    uint8_t j;

    uint8_t  i;
    color_t  col;

    t = cmillis() % (ERROR_DELAY * 2);
    if (t > ERROR_DELAY)
    {
        switch(g_error)
