Update ChangeUID.ino

Updated code to account for serial behavior change in ATMEGA32U4
This commit is contained in:
UnKnoWn-Consortium
2015-01-25 00:04:30 +00:00
parent 43209541ee
commit 70bff5c128

View File

@@ -51,7 +51,8 @@ MFRC522::MIFARE_Key key;
void setup() {
Serial.begin(9600); // Initialize serial communications with the PC
SPI.begin(); // Init SPI bus
while (!Serial); // Do nothing if no serial port is opened (added for Arduinos based on ATMEGA32U4)
SPI.begin(); // Init SPI bus
mfrc522.PCD_Init(); // Init MFRC522 card
Serial.println("Warning: this example overwrites the UID of your UID changeable card, use with care!");