libfprint/.gitignore
Leonardo Francisco 812b534653 validity: fix verify/identify stuck on non-matching finger
The VERIFY_WAIT_MATCH_INT state only advanced the SSM on interrupt
types 3 (match) or 5 (no-match), looping back to read_again for any
other type. However, the sensor only sends a single interrupt after
match_finger (cmd 0x5E). If the interrupt type is anything other than
3 or 5, the driver waited forever for another interrupt that never
arrives, causing fprintd-verify to hang.

python-validity's reference implementation treats any interrupt type
!= 3 as 'finger not recognized' and skips cmd 0x60 (get_match_result),
going straight to cleanup (cmd 0x62).

Fix: on interrupt type 3 (match), advance to VERIFY_GET_RESULT as
before. On any other type, clear stale result data and jump directly
to VERIFY_CLEANUP, skipping the unnecessary cmd 0x60.
2026-04-22 03:06:34 +00:00

4 lines
No EOL
28 B
Text