mirror of
https://gitlab.freedesktop.org/libfprint/libfprint.git
synced 2026-09-10 13:00:08 +00:00
secugen: Ignore wrong and unneeded device emulation mode check
This commit is contained in:
@@ -853,9 +853,7 @@ secugen_frame_chunk_cb (FpiUsbTransfer *transfer,
|
|||||||
if (remaining > 0)
|
if (remaining > 0)
|
||||||
memset (self->bulk_dest + self->bulk_offset, 0, remaining);
|
memset (self->bulk_dest + self->bulk_offset, 0, remaining);
|
||||||
|
|
||||||
/* Outside emulation a complete sensor frame is expected. */
|
if (self->bulk_offset < SECUGEN_RAW_SIZE)
|
||||||
if (self->bulk_offset < SECUGEN_RAW_SIZE &&
|
|
||||||
fpi_device_emulation_mode_enabled (dev))
|
|
||||||
{
|
{
|
||||||
fp_warn ("Short image data: got %" G_GSIZE_FORMAT ", expected %d",
|
fp_warn ("Short image data: got %" G_GSIZE_FORMAT ", expected %d",
|
||||||
self->bulk_offset, SECUGEN_RAW_SIZE);
|
self->bulk_offset, SECUGEN_RAW_SIZE);
|
||||||
|
|||||||
Reference in New Issue
Block a user