elanmoc: Fix the identify/verify error reporting in identify_status_report

This commit is contained in:
hermanlin 2021-08-10 16:40:03 +08:00
parent 1a5df96751
commit 4edfa48608
1 changed files with 4 additions and 1 deletions

View File

@ -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;
}