mirror of
https://gitlab.freedesktop.org/libfprint/libfprint.git
synced 2025-11-15 07:38:12 +00:00
goodix: Make fingerlist parse error non-fatal
Otherwise we cannot recover from the error by doing a device reset.
This commit is contained in:
committed by
Benjamin Berg
parent
8552290bec
commit
08da0eb1e1
@@ -393,10 +393,8 @@ gx_proto_parse_body (uint16_t cmd, uint8_t *buffer, uint16_t buffer_len, pgxfp_c
|
|||||||
fingerid_length,
|
fingerid_length,
|
||||||
&presp->finger_list_resp.finger_list[num]) != 0)
|
&presp->finger_list_resp.finger_list[num]) != 0)
|
||||||
{
|
{
|
||||||
g_error ("parse fingerlist error");
|
g_warning ("Failed to parse finger list");
|
||||||
presp->finger_list_resp.finger_num = 0;
|
return -1;
|
||||||
presp->result = GX_FAILED;
|
|
||||||
break;
|
|
||||||
}
|
}
|
||||||
offset += fingerid_length;
|
offset += fingerid_length;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user