1
0
mirror of https://github.com/xfjx/TonUINO.git synced 2025-08-22 09:42:51 +02:00

Durch den Einbau vom Support von Mifare UL hatte sich ein Fehler eingeschlichen. Fixed.

This commit is contained in:
Thorsten Voß
2019-01-27 13:16:34 +01:00
parent 250ec57a11
commit 5d3a4c4066

View File

@@ -932,7 +932,7 @@ void setupCard() {
writeCard(myCard);
}
bool readCard(nfcTagObject *nfcTag) {
bool readCard(nfcTagObject * nfcTag) {
bool returnValue = true;
// Show some details of the PICC (that is: the tag/card)
Serial.print(F("Card UID:"));
@@ -1028,8 +1028,7 @@ bool readCard(nfcTagObject *nfcTag) {
memcpy(buffer + 12, buffer2, 4);
}
Serial.print(F("Data in block "));
Serial.print(blockAddr);
Serial.print(F("Data on Card "));
Serial.println(F(":"));
dump_byte_array(buffer, 16);
Serial.println();
@@ -1048,6 +1047,8 @@ bool readCard(nfcTagObject *nfcTag) {
nfcTag->nfcFolderSettings.special = buffer[7];
nfcTag->nfcFolderSettings.special2 = buffer[8];
myFolder = &nfcTag->nfcFolderSettings;
return returnValue;
}