   {
     BlinkRGB* rgb = (BlinkRGB*) fsm;
     rgb->greenLedPin.toggle();
-    fsm->set_timer(TIMEOUT);
+    fsm->set_timer(rgb->timeout);
     fsm->set_state(greenState);
     return (1);
   }

  {
    BlinkRGB* rgb = (BlinkRGB*) fsm;
    rgb->blueLedPin.toggle();
    fsm->set_timer(TIMEOUT);
    fsm->set_state(blueState);
    return (1);
  }

  {
    BlinkRGB* rgb = (BlinkRGB*) fsm;
    rgb->greenLedPin.toggle();
    fsm->set_timer(rgb->timeout);
    fsm->set_state(magentaState);
    return (1);
  }
