From 50f522583e951272fa72b11a85fe235d648abc3a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marco=20Trevisan=20=28Trevi=C3=B1o=29?= Date: Sun, 24 Jan 2021 01:28:20 +0100 Subject: [PATCH] virtual-device: Set needed finger state on enroll and verify --- libfprint/drivers/virtual-device.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libfprint/drivers/virtual-device.c b/libfprint/drivers/virtual-device.c index cf397c5..68f5c3d 100644 --- a/libfprint/drivers/virtual-device.c +++ b/libfprint/drivers/virtual-device.c @@ -279,6 +279,7 @@ dev_verify (FpDevice *dev) g_autofree char *scan_id = NULL; fpi_device_get_verify_data (dev, &print); + fpi_device_report_finger_status (dev, FP_FINGER_STATUS_NEEDED); scan_id = process_cmds (self, TRUE, &error); if (should_wait_for_command (self, error)) @@ -325,6 +326,7 @@ dev_enroll (FpDevice *dev) FpPrint *print = NULL; g_autofree char *id = NULL; + fpi_device_report_finger_status (dev, FP_FINGER_STATUS_NEEDED); fpi_device_get_enroll_data (dev, &print); id = process_cmds (self, TRUE, &error);