Update src/arduino/card_scanner.ino
This commit is contained in:
@@ -32,7 +32,7 @@ void setup() {
|
||||
|
||||
// iteration
|
||||
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()){
|
||||
return;
|
||||
}
|
||||
@@ -41,6 +41,7 @@ void loop() {
|
||||
return;
|
||||
}
|
||||
|
||||
// Send UID of token to the serialport
|
||||
Serial.println(rfid.uid)
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user