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:
parent
48aa6d0252
commit
3ad65b9589
1 changed files with 1 additions and 2 deletions
|
@ -381,9 +381,8 @@ submit_image (FpiSsm *ssm,
|
||||||
{
|
{
|
||||||
FpImage *img;
|
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);
|
fpi_image_device_retry_scan (dev, FP_DEVICE_RETRY_TOO_SHORT);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue