mirror of
https://gitlab.freedesktop.org/libfprint/libfprint.git
synced 2025-11-15 07:38:12 +00:00
synaptics, goodix: Properly check for finger status during enroll progress
It may contain other values, but for sure we finger must be neeeded
This commit is contained in:
2
tests/goodixmoc/custom.py
Executable file → Normal file
2
tests/goodixmoc/custom.py
Executable file → Normal file
@@ -31,7 +31,7 @@ d.clear_storage_sync()
|
|||||||
template = FPrint.Print.new(d)
|
template = FPrint.Print.new(d)
|
||||||
|
|
||||||
def enroll_progress(*args):
|
def enroll_progress(*args):
|
||||||
assert d.get_finger_status() == FPrint.FingerStatusFlags.NEEDED
|
assert d.get_finger_status() & FPrint.FingerStatusFlags.NEEDED
|
||||||
print('enroll progress: ' + str(args))
|
print('enroll progress: ' + str(args))
|
||||||
|
|
||||||
def identify_done(dev, res):
|
def identify_done(dev, res):
|
||||||
|
|||||||
@@ -51,7 +51,7 @@ d.clear_storage_sync()
|
|||||||
template = FPrint.Print.new(d)
|
template = FPrint.Print.new(d)
|
||||||
|
|
||||||
def enroll_progress(*args):
|
def enroll_progress(*args):
|
||||||
#assert d.get_finger_status() == FPrint.FingerStatusFlags.NEEDED
|
assert d.get_finger_status() & FPrint.FingerStatusFlags.NEEDED
|
||||||
print('enroll progress: ' + str(args))
|
print('enroll progress: ' + str(args))
|
||||||
|
|
||||||
# List, enroll, list, verify, delete, list
|
# List, enroll, list, verify, delete, list
|
||||||
|
|||||||
Reference in New Issue
Block a user