   unsigned long timeInState;
   unsigned long timeoutTransitions;
   unsigned long autoReportCycle;
-} state[REJECTED + 1] =
+} state[] =
 {
   { "Booting",              LED::LED_ERROR,           120 * 1000, REBOOT,         0 },
   { "Out of order",         LED::LED_ERROR,           120 * 1000, REBOOT,         5 * 60 * 1000 },

  { "Transient Error",      LED::LED_ERROR,             5 * 1000, WAITINGFORCARD, 5 * 60 * 1000 },
  { "No network",           LED::LED_FLASH,                NEVER, NOCONN,         0 },
  { "Waiting for card",     LED::LED_IDLE,                 NEVER, WAITINGFORCARD, 0 },
};



    case WAITINGFORCARD:
    case CHECKINGCARD:
    case REJECTED:
    case THANKS:
      // all handled in above stage engine.
      break;
  };
