oddparity ^= (((frame[j] & 0xFF) >> k) & 0x01);
}
uint8_t parityBits = parityBytes[j>>3];
- if (protocol != ISO_14443B && protocol != ISO_7816_4 && (isResponse || protocol == ISO_14443A) && (oddparity != ((parityBits >> (7-(j&0x0007))) & 0x01))) {
+ if (protocol != LEGIC && protocol != ISO_14443B && protocol != ISO_7816_4 && (isResponse || protocol == ISO_14443A) && (oddparity != ((parityBits >> (7-(j&0x0007))) & 0x01))) {
snprintf(line[j/16]+(( j % 16) * 4),110, "%02x! ", frame[j]);
} else {
snprintf(line[j/16]+(( j % 16) * 4),110, "%02x ", frame[j]);
PrintAndLog("\nValid Topaz Tag Found - Quiting Search\n");
return 1;
}
+ ans = HFLegicInfo("", false);
+ if ( ans == 0) {
+ PrintAndLog("\nValid LEGIC Tag Found - Quiting Search\n");
+ return 1;
+ }
+
PrintAndLog("\nno known/supported 13.56 MHz tags found\n");
return 0;
}