mirror of
https://gitlab.freedesktop.org/libfprint/libfprint.git
synced 2025-11-15 07:38:12 +00:00
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:
committed by
Marco Trevisan
parent
48aa6d0252
commit
3ad65b9589
@@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user