diff --git a/libfprint/drivers/vfs101.c b/libfprint/drivers/vfs101.c index 84624eb..062bc42 100644 --- a/libfprint/drivers/vfs101.c +++ b/libfprint/drivers/vfs101.c @@ -653,7 +653,7 @@ static int action_completed(struct fp_img_dev *dev) struct vfs101_dev *vdev = dev->priv; if ((dev->action == IMG_ACTION_ENROLL) && - (vdev->enroll_stage < 1)) + (vdev->enroll_stage < dev->dev->nr_enroll_stages)) /* Enroll not completed, return false */ return FALSE;