mirror of
https://github.com/xfjx/TonUINO.git
synced 2025-08-22 16:33:49 +02:00
Durch den Einbau vom Support von Mifare UL hatte sich ein Fehler eingeschlichen. Fixed.
This commit is contained in:
@@ -932,7 +932,7 @@ void setupCard() {
|
|||||||
writeCard(myCard);
|
writeCard(myCard);
|
||||||
}
|
}
|
||||||
|
|
||||||
bool readCard(nfcTagObject *nfcTag) {
|
bool readCard(nfcTagObject * nfcTag) {
|
||||||
bool returnValue = true;
|
bool returnValue = true;
|
||||||
// Show some details of the PICC (that is: the tag/card)
|
// Show some details of the PICC (that is: the tag/card)
|
||||||
Serial.print(F("Card UID:"));
|
Serial.print(F("Card UID:"));
|
||||||
@@ -1028,8 +1028,7 @@ bool readCard(nfcTagObject *nfcTag) {
|
|||||||
memcpy(buffer + 12, buffer2, 4);
|
memcpy(buffer + 12, buffer2, 4);
|
||||||
}
|
}
|
||||||
|
|
||||||
Serial.print(F("Data in block "));
|
Serial.print(F("Data on Card "));
|
||||||
Serial.print(blockAddr);
|
|
||||||
Serial.println(F(":"));
|
Serial.println(F(":"));
|
||||||
dump_byte_array(buffer, 16);
|
dump_byte_array(buffer, 16);
|
||||||
Serial.println();
|
Serial.println();
|
||||||
@@ -1048,6 +1047,8 @@ bool readCard(nfcTagObject *nfcTag) {
|
|||||||
nfcTag->nfcFolderSettings.special = buffer[7];
|
nfcTag->nfcFolderSettings.special = buffer[7];
|
||||||
nfcTag->nfcFolderSettings.special2 = buffer[8];
|
nfcTag->nfcFolderSettings.special2 = buffer[8];
|
||||||
|
|
||||||
|
myFolder = &nfcTag->nfcFolderSettings;
|
||||||
|
|
||||||
return returnValue;
|
return returnValue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user