       // check for early card removal (all reading holes)
       if ((freg == 1) && (now == 0xFF))
       {
-        state = STATE_REMOVED;
+        state = STATE_REMOVING;
         //Serial.println(state);
       }
       else

      if ((freg == 1) && (now == 0xFF))
      {
        // bail early if all on (removed)
        state = STATE_REMOVED;
        //Serial.println(state);
      }
      // wait for all paper

  // crank round the acquisition state machine
  switch (state)
  {
    case STATE_NOCARD:
      // stay here while freg=1 and data=0xFF, all holes (card removed)
      if ((freg != 1) || now != 0xFF)
      { // at least one sensor has seen paper
