mirror of
https://gitlab.freedesktop.org/libfprint/libfprint.git
synced 2026-09-10 21:06:51 +00:00
realtek: Consider any non-success status as a failure during enroll
This commit is contained in:
committed by
Marco Trevisan
parent
0a446df6f9
commit
873bca59ee
@@ -234,6 +234,16 @@ fp_accept_sample_cb (FpiDeviceRealtek *self,
|
|||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (in_status != FP_RTK_SUCCESS)
|
||||||
|
{
|
||||||
|
fpi_ssm_mark_failed (self->task_ssm,
|
||||||
|
fpi_device_error_new_msg (FP_DEVICE_ERROR_DATA_INVALID,
|
||||||
|
"Enrollment failed (status 0x%02x)",
|
||||||
|
in_status));
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
fpi_ssm_next_state (self->task_ssm);
|
fpi_ssm_next_state (self->task_ssm);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user