Remove ov-chipkaart special handler

This commit is contained in:
Laura Hausmann 2023-05-19 16:57:38 +02:00
parent 19f7075e8c
commit c389d0c440
Signed by: zotan
GPG key ID: D044E84C5BE01605
2 changed files with 9 additions and 9 deletions

View file

@ -70,14 +70,14 @@ String PN532Reader::getCardUid() {
uint8_t sak;
pn532->readDetectedPassiveTargetID(uid, &uidLength, &atqa, &sak);
if (uidLength == 4) {
if (atqa == 0x2 && sak == 0x18) {
Serial.println("4 byte uid with ATQA 0x2 and SAK 0x18, assuming ov-chipkaart");
uidLength = 6;
uid[4] = 0x02;
uid[5] = 0x18;
}
}
/*if (uidLength == 4) {
if (atqa == 0x2 && sak == 0x18) {
Serial.println("4 byte uid with ATQA 0x2 and SAK 0x18, assuming ov-chipkaart");
uidLength = 6;
uid[4] = 0x02;
uid[5] = 0x18;
}
}*/
}
else {
Serial.println("Reading FeliCa IDm");

View file

@ -166,6 +166,6 @@ public class CardController : Controller {
"pn532-felica" => Card.CardType.FeliCaGeneric,
"rdm6300" => Card.CardType.Rfid125KhzGeneric,
_ => Card.CardType.Unknown
//"pn532-iso14443a" when [???] => Card.CardType.NfcContactless,
//"pn532-iso14443a" when [???] => Card.CardType.NfcContactless,
};
}