Update src/arduino/card_scanner.ino
parent
838830bf4a
commit
f2543ffbff
|
@ -32,7 +32,7 @@ void setup() {
|
||||||
|
|
||||||
// iteration
|
// iteration
|
||||||
void loop() {
|
void loop() {
|
||||||
// Reset the loop if no new card present on the sensor/reader. This saves the entire process when idle.
|
// Reset the loop if no new card present on the reader
|
||||||
if (!rfid.PICC_IsNewCardPresent()){
|
if (!rfid.PICC_IsNewCardPresent()){
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -41,6 +41,7 @@ void loop() {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Send UID of token to the serialport
|
||||||
Serial.println(rfid.uid)
|
Serial.println(rfid.uid)
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue