mirror of
https://gitlab.freedesktop.org/libfprint/libfprint.git
synced 2025-11-15 07:38:12 +00:00
fpcmoc: add error handling to evt_finger_dwn
Redo the current task state if we got failed status from evt_finger_dwn
This commit is contained in:
@@ -445,10 +445,16 @@ fpc_evt_cb (FpiDeviceFpcMoc *self,
|
||||
break;
|
||||
|
||||
case FPC_EVT_FINGER_DWN:
|
||||
fp_dbg ("%s Got finger down event", G_STRFUNC);
|
||||
fp_dbg ("%s Got finger down event (%d)", G_STRFUNC, presp->evt_hdr.status);
|
||||
fpi_device_report_finger_status_changes (FP_DEVICE (self),
|
||||
FP_FINGER_STATUS_PRESENT,
|
||||
FP_FINGER_STATUS_NONE);
|
||||
if (presp->evt_hdr.status != 0)
|
||||
{
|
||||
/* Redo the current task state if capture failed */
|
||||
fpi_ssm_jump_to_state (self->task_ssm, fpi_ssm_get_cur_state (self->task_ssm));
|
||||
return;
|
||||
}
|
||||
break;
|
||||
|
||||
case FPC_EVT_IMG:
|
||||
|
||||
Reference in New Issue
Block a user