adafruit / Adafruit-Fingerprint-Sensor-Library

Arduino library for interfacing to the fingerprint sensor in the Adafruit shop
http://www.adafruit.com/products/751
Other
417 stars 340 forks source link

Differentiate between wrong password and communication error #90

Open loongyh opened 4 years ago

loongyh commented 4 years ago

Allow public access to checkPassword() to return one of FINGERPRINT_OK, FINGERPRINT_PACKETRECIEVEERR, FINGERPRINT_PASSFAIL. Useful to determine if failure is due to wrong password or communication error.

Also fix comment for FINGERPRINT_PASSFAIL (0x13) to reflect the actual meaning as described in the datasheet:

1

Does not affect existing functionality.