mirror of
https://gitlab.freedesktop.org/libfprint/libfprint.git
synced 2025-11-15 07:38:12 +00:00
uru4000: Fix image capture error on ARM
http://www.mail-archive.com/fprint@lists.freedesktop.org/msg00294.html
This commit is contained in:
committed by
Bastien Nocera
parent
ea6d5ba6d6
commit
45ac0eefb0
@@ -689,8 +689,8 @@ static void imaging_run_state(struct fpi_ssm *ssm)
|
|||||||
fp_dbg("hw header lines %d", img->num_lines);
|
fp_dbg("hw header lines %d", img->num_lines);
|
||||||
|
|
||||||
if (img->num_lines >= IMAGE_HEIGHT ||
|
if (img->num_lines >= IMAGE_HEIGHT ||
|
||||||
urudev->img_transfer->actual_length != img->num_lines * IMAGE_WIDTH + 64) {
|
urudev->img_transfer->actual_length < img->num_lines * IMAGE_WIDTH + 64) {
|
||||||
fp_err("bad captured image (%d lines) or size mismatch %d != %d",
|
fp_err("bad captured image (%d lines) or size mismatch %d < %d",
|
||||||
img->num_lines,
|
img->num_lines,
|
||||||
urudev->img_transfer->actual_length,
|
urudev->img_transfer->actual_length,
|
||||||
img->num_lines * IMAGE_WIDTH + 64);
|
img->num_lines * IMAGE_WIDTH + 64);
|
||||||
|
|||||||
Reference in New Issue
Block a user