From 7014f3dc71fa38965a0ea795e2547e59116e9373 Mon Sep 17 00:00:00 2001 From: Rotzbua Date: Tue, 19 Jan 2016 18:03:05 +0100 Subject: [PATCH] fix old return type byte -> MFRC522:::PICC_Type --- examples/RFID-Cloner/RFID-Cloner.ino | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/examples/RFID-Cloner/RFID-Cloner.ino b/examples/RFID-Cloner/RFID-Cloner.ino index 6aa809d..3d3efaf 100644 --- a/examples/RFID-Cloner/RFID-Cloner.ino +++ b/examples/RFID-Cloner/RFID-Cloner.ino @@ -1,6 +1,6 @@ /* -Copy the RFID card data into variables and then -scan the second empty card to copy all the date + * Copy the RFID card data into variables and then + * scan the second empty card to copy all the date * ---------------------------------------------------------------------------- * Example sketch/program which will try the most used default keys listed in * 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); Serial.println(); 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)); // Try the known default keys @@ -292,7 +292,7 @@ void keuze1(){ //Read card dump_byte_array(mfrc522.uid.uidByte, mfrc522.uid.size); Serial.println(); 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)); // Try the known default keys