image-device: Fix enroll continuation after retry error
Continuing an enroll was broken in case of a retry error. Explicitly add code to wait for the finger to go OFF after a retry error, and ensure that the enroll will continue once that has happened.
This commit is contained in:
parent
6c6df626c8
commit
8992e559f8
1 changed files with 5 additions and 0 deletions
|
@ -404,6 +404,11 @@ fpi_image_device_retry_scan (FpImageDevice *self, FpDeviceRetry retry)
|
||||||
{
|
{
|
||||||
g_debug ("Reporting retry during enroll");
|
g_debug ("Reporting retry during enroll");
|
||||||
fpi_device_enroll_progress (FP_DEVICE (self), priv->enroll_stage, NULL, error);
|
fpi_device_enroll_progress (FP_DEVICE (self), priv->enroll_stage, NULL, error);
|
||||||
|
|
||||||
|
/* Wait for finger removal and re-touch.
|
||||||
|
* TODO: Do we need to check that the finger is already off? */
|
||||||
|
priv->enroll_await_on_pending = TRUE;
|
||||||
|
fp_image_device_change_state (self, FPI_IMAGE_DEVICE_STATE_AWAIT_FINGER_OFF);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue