How to read card only one time RDM6300?

Hello. I have rdm6300. I get too much the same cards numbers in one second. How can i get only one cards numbers?
I use this code with uart:

void read_tag(){
  if(Serial3.available() > 0){
    bool call_extract_tag = false;
    int ssvalue = Serial3.read(); // read
    if (ssvalue == -1) { // no data was read
      return;
    }
    if (ssvalue == 2) { //RDM6300 found a tag 
      buffer_index = 0;
    } else if (ssvalue == 3) {
      call_extract_tag = true;
    }
    if (buffer_index >= BUFFER_SIZE) {
      Serial.println("Error: Buffer overflow detected!");
      return;
    }
   
    buffer[buffer_index++] = ssvalue;
    if (call_extract_tag == true) {
      if (buffer_index == BUFFER_SIZE) {
        unsigned long tag = extract_tag();
       
        Serial.println(tag);
        return;
      } else {
        buffer_index = 0;
        return;
      }
    }
  }   
}

If you only want to read a card once, you have to remember the tagID of the last card you read so that when you read a card again, you can compare the IDs and ignore it if they are the same.

thanx!!