diff --git a/firmware/core/core.ino b/firmware/core/core.ino index 9a69903..dfc0911 100644 --- a/firmware/core/core.ino +++ b/firmware/core/core.ino @@ -55,7 +55,7 @@ // Open serial communications and wait for port to open: Serial.begin(9600); -#if 0 +#if 1 // this check is only needed on the Leonardo: while (!Serial) { ; // wait for serial port to connect. Needed for Leonardo only @@ -244,6 +244,6 @@ rfid.Next(); } - networkTask(); + // networkTask(); } diff --git a/firmware/core/rfid.ino b/firmware/core/rfid.ino index 2d17e3e..139542d 100644 --- a/firmware/core/rfid.ino +++ b/firmware/core/rfid.ino @@ -20,7 +20,7 @@ } unsigned long currentMillis = millis(); - if(currentMillis - previousPollMillis > 300){ + if(currentMillis - previousPollMillis > 100){ previousPollMillis = currentMillis; }else{ return; @@ -52,7 +52,7 @@ } if (success) { - Serial.println("Found a card!"); + Serial.println("Found Mifare card!"); Serial.print("UID Length: ");Serial.print(uidLength, DEC);Serial.println(" bytes"); Serial.print("UID Value: "); for (uint8_t i=0; i < uidLength; i++) @@ -93,6 +93,8 @@ card = Card_14443B; found = true; SetLedOn(true); + }else{ + pn532.resetConfigFor14443B(); } }else{