vfs5011: Prevent too small images

We need more than 1 line for assembling, but in general, we should
have a reasonable amount of lines. So use the width in the hope we'll
get an image that is about square at least.

Closes: #135
This commit is contained in:
Benjamin Berg 2020-05-04 16:53:29 +02:00 committed by Marco Trevisan
parent 48aa6d0252
commit 3ad65b9589

View file

@ -381,9 +381,8 @@ submit_image (FpiSsm *ssm,
{
FpImage *img;
if (self->lines_recorded == 0)
if (self->lines_recorded < VFS5011_IMAGE_WIDTH)
{
/* == FP_ENROLL_RETRY_TOO_SHORT */
fpi_image_device_retry_scan (dev, FP_DEVICE_RETRY_TOO_SHORT);
return;
}