 
 void loop()
 {
+  if ( bReadCard && revo ) {
+    mfrc522.PICC_IsNewCardPresent();
+    if (! mfrc522.PICC_IsNewCardPresent()) {
+      revo = false;
+      bReadCard = false;
+    }
+  }
+
+  if ( bReadCard && rct ) {
+    mfrc522.PCD_StopCrypto1();
+    mfrc522.PICC_IsNewCardPresent();
+    if (! mfrc522.PICC_IsNewCardPresent()) {
+      rct = false;
+      bReadCard = false;
+      uLoopCount = 0;
+    }
+  }
+
+  //
   if (! bReadCard) {
     if ( ! mfrc522.PICC_IsNewCardPresent()) {
       return;

        temp[0] = 0;
        floatToString((char*)&temp, wCcount, 0);
        strcat((char*)&msg_line1, (char*)&temp);
        
        JB.JetiBox((char*)&msg_line1, (char*)&msg_line2);
        break;
      }

  else
    wait = wait - milli;
  pinMode(JETI_TX, OUTPUT);
}
