From 4edfa486083117226b412f2a6fa283f4f5efa292 Mon Sep 17 00:00:00 2001 From: hermanlin Date: Tue, 10 Aug 2021 16:40:03 +0800 Subject: [PATCH] elanmoc: Fix the identify/verify error reporting in identify_status_report --- libfprint/drivers/elanmoc/elanmoc.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/libfprint/drivers/elanmoc/elanmoc.c b/libfprint/drivers/elanmoc/elanmoc.c index 29edec4..447182f 100644 --- a/libfprint/drivers/elanmoc/elanmoc.c +++ b/libfprint/drivers/elanmoc/elanmoc.c @@ -689,7 +689,10 @@ identify_status_report (FpiDeviceElanmoc *self, int verify_status_id, if (error) { - fpi_device_enroll_complete (device, NULL, error); + if (fpi_device_get_current_action (device) == FPI_DEVICE_ACTION_VERIFY) + fpi_device_verify_complete (device, error); + else + fpi_device_identify_complete (device, error); return; }