fix imaging action state for repeated enroll attempts
Enroll attempts may retry in some situations, so we need to reset the state to accept more scans.
This commit is contained in:
parent
a11ac7d8f8
commit
617ca8cd15
1 changed files with 5 additions and 0 deletions
|
@ -198,6 +198,11 @@ void fpi_imgdev_report_finger_status(struct fp_img_dev *imgdev,
|
|||
case IMG_ACTION_ENROLL:
|
||||
fp_dbg("reporting enroll result");
|
||||
fpi_drvcb_enroll_stage_completed(imgdev->dev, r, data, img);
|
||||
if (r > 0 && r != FP_ENROLL_COMPLETE && r != FP_ENROLL_FAIL) {
|
||||
imgdev->action_result = 0;
|
||||
imgdev->action_state = IMG_ACQUIRE_STATE_AWAIT_FINGER_ON;
|
||||
dev_change_state(imgdev, IMG_ACQUIRE_STATE_AWAIT_FINGER_ON);
|
||||
}
|
||||
break;
|
||||
case IMG_ACTION_VERIFY:
|
||||
fpi_drvcb_report_verify_result(imgdev->dev, r, img);
|
||||
|
|
Loading…
Reference in a new issue