Adafruit-Fingerprint-Sensor-Library icon indicating copy to clipboard operation
Adafruit-Fingerprint-Sensor-Library copied to clipboard

Differentiate between wrong password and communication error

Open loongyh opened this issue 4 years ago • 0 comments

  • Describe the scope of your change--i.e. what the change does and what parts of the code were modified. This will help us understand any risks of integrating the code.

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

  • Describe any known limitations with your change. For example if the change doesn't apply to a supported platform of the library please mention it.

Does not affect existing functionality.

loongyh avatar Oct 27 '20 17:10 loongyh