fix old return type

byte -> MFRC522:::PICC_Type
This commit is contained in:
Rotzbua
2016-01-19 18:03:05 +01:00
parent 9f6a078290
commit 7014f3dc71

View File

@@ -1,6 +1,6 @@
/* /*
Copy the RFID card data into variables and then * Copy the RFID card data into variables and then
scan the second empty card to copy all the date * scan the second empty card to copy all the date
* ---------------------------------------------------------------------------- * ----------------------------------------------------------------------------
* Example sketch/program which will try the most used default keys listed in * Example sketch/program which will try the most used default keys listed in
* https://code.google.com/p/mfcuk/wiki/MifareClassicDefaultKeys to dump the * https://code.google.com/p/mfcuk/wiki/MifareClassicDefaultKeys to dump the
@@ -213,7 +213,7 @@ Serial.println("Insert new card...");
dump_byte_array(mfrc522.uid.uidByte, mfrc522.uid.size); dump_byte_array(mfrc522.uid.uidByte, mfrc522.uid.size);
Serial.println(); Serial.println();
Serial.print(F("PICC type: ")); Serial.print(F("PICC type: "));
byte piccType = mfrc522.PICC_GetType(mfrc522.uid.sak); MFRC522::PICC_Type piccType = mfrc522.PICC_GetType(mfrc522.uid.sak);
Serial.println(mfrc522.PICC_GetTypeName(piccType)); Serial.println(mfrc522.PICC_GetTypeName(piccType));
// Try the known default keys // Try the known default keys
@@ -292,7 +292,7 @@ void keuze1(){ //Read card
dump_byte_array(mfrc522.uid.uidByte, mfrc522.uid.size); dump_byte_array(mfrc522.uid.uidByte, mfrc522.uid.size);
Serial.println(); Serial.println();
Serial.print(F("PICC type: ")); Serial.print(F("PICC type: "));
byte piccType = mfrc522.PICC_GetType(mfrc522.uid.sak); MFRC522::PICC_Type piccType = mfrc522.PICC_GetType(mfrc522.uid.sak);
Serial.println(mfrc522.PICC_GetTypeName(piccType)); Serial.println(mfrc522.PICC_GetTypeName(piccType));
// Try the known default keys // Try the known default keys