From f906afb7570d394033fef61eebfbbb0f1563ba72 Mon Sep 17 00:00:00 2001 From: MrNerdHair Date: Sat, 12 Nov 2022 02:56:24 -0500 Subject: [PATCH] upekts: handle more retryable verify errors --- libfprint/drivers/upekts.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/libfprint/drivers/upekts.c b/libfprint/drivers/upekts.c index 434fd8e1..99d13249 100644 --- a/libfprint/drivers/upekts.c +++ b/libfprint/drivers/upekts.c @@ -1341,7 +1341,6 @@ v_handle_resp00 (FpDevice *dev, unsigned char *data, fp_dbg ("good image"); break; - case 0x1c: /* FIXME what does this one mean? */ case 0x0b: /* FIXME what does this one mean? */ case 0x23: /* FIXME what does this one mean? */ error = fpi_device_retry_new (FP_DEVICE_RETRY_GENERAL); @@ -1351,6 +1350,14 @@ v_handle_resp00 (FpDevice *dev, unsigned char *data, error = fpi_device_retry_new (FP_DEVICE_RETRY_REMOVE_FINGER); break; + case 0x1c: /* swipe too fast */ + error = fpi_device_retry_new (FP_DEVICE_RETRY_TOO_FAST); + break; + + case 0x1d: /* too much horizontal movement */ + error = fpi_device_retry_new (FP_DEVICE_RETRY_CENTER_FINGER); + break; + case 0x1e: /* swipe too short */ error = fpi_device_retry_new (FP_DEVICE_RETRY_TOO_SHORT); break;