   button1.update();
   button2.update();
 
-  static bool haveSeenPower = false;
-
   if (laststate != machinestate) {
     Debug.printf("Changed from state <%s> to state <%s>\n",
                  state[laststate].label, state[machinestate].label);

      break;

    case ENABLED:
      if (!(opto1.state()))
        machinestate = POWERED;
      break;

    case POWERED:

    machinestate = WAITINGFORCARD;
  };

  if (laststate < POWERED)
    digitalWrite(RELAY_GPIO, 0);
  else
