Skip to content

Commit

Permalink
Merge pull request #69 from miselico/master
Browse files Browse the repository at this point in the history
Corrected action taken after successfully storing the fingerprint in enroll example.
  • Loading branch information
caternuson committed Jan 24, 2024
2 parents f9a4980 + 9d51eb5 commit c127475
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions examples/enroll/enroll.ino
Expand Up @@ -10,7 +10,9 @@
please support Adafruit and open-source hardware by purchasing
products from Adafruit!
Written by Limor Fried/Ladyada for Adafruit Industries.
Written by Limor Fried/Ladyada for Adafruit Industries.
Small bug-fix by Michael cochez
BSD license, all text above must be included in any redistribution
****************************************************/

Expand Down Expand Up @@ -85,7 +87,7 @@ void loop() // run over and over again
Serial.print("Enrolling ID #");
Serial.println(id);

while (! getFingerprintEnroll() );
while (! getFingerprintEnroll() );
}

uint8_t getFingerprintEnroll() {
Expand All @@ -99,7 +101,7 @@ uint8_t getFingerprintEnroll() {
Serial.println("Image taken");
break;
case FINGERPRINT_NOFINGER:
Serial.println(".");
Serial.print(".");
break;
case FINGERPRINT_PACKETRECIEVEERR:
Serial.println("Communication error");
Expand Down

0 comments on commit c127475

Please sign in to comment.