Remove ov-chipkaart special handler
This commit is contained in:
parent
19f7075e8c
commit
c389d0c440
|
@ -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");
|
||||
|
|
|
@ -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,
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue