From 32b4b123c69d195dd1c4ee3913e7f1d252def506 Mon Sep 17 00:00:00 2001 From: ladyada Date: Sat, 25 Nov 2017 00:32:17 -0500 Subject: [PATCH] return id as promised --- examples/fingerprint/fingerprint.ino | 2 ++ 1 file changed, 2 insertions(+) diff --git a/examples/fingerprint/fingerprint.ino b/examples/fingerprint/fingerprint.ino index deca391..1e0339a 100644 --- a/examples/fingerprint/fingerprint.ino +++ b/examples/fingerprint/fingerprint.ino @@ -117,6 +117,8 @@ uint8_t getFingerprintID() { // found a match! Serial.print("Found ID #"); Serial.print(finger.fingerID); Serial.print(" with confidence of "); Serial.println(finger.confidence); + + return finger.fingerID; } // returns -1 if failed, otherwise returns ID #